왼쪽은 버튼 모양, 오른쪽은 폼에 그려졌을때 모양 C# 에서는 다양한 버튼을 제공하는데 그중 빈도가 높은 버튼 시각적으로 봤을때 위아래 버튼을 이용해서 숫자를 정하고 원하는 값을 찾는 모양 최대값과 최소값, 폼에서 불러왔을때 값은 각각 numericUpDown1.Minimum = 1900; numericUpDown1.Maximum = 2015; numericUpDown1.Value = 2011; numericUpDown2.Minimum = 1; numericUpDown2.Maximum = 12; numericUpDown2.Value = 1; 이와 같이 표현하고, Minimum 은 최소, Maximum 은 최대, value 는 load 시에 값. 값을 쓸때도 numericUpDown1.Value 를 이용해..
using System; // 구성 요소 및 컨트롤의 런타임 및 디자인 타임 동작을 구현시 // 사용하는 클래스 제공using System.Collections.Generic;using System.ComponentModel; // 기본 그래픽 기능과 GDI 기능 제공using System.Drawing; // Form을 포함한 모든 컨트롤 클래스 제공using System.Windows.Forms; using System.Data;using System.Linq;using System.Text; namespace test_winform2{ public partial class Form1 : Form { public Form1() { // Form 디자인 초기화 InitializeComponent(); ..
using System;using System.Windows.Forms; namespace test_Winform{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } void ChangeFont() { if (cboFont.SelectedIndex < 0) { return; } FontStyle style = FontStyle.Regular; if (chkBold.Checked) style |= FontStyle.Bold; if (chkItalic.Checked) style |= FontStyle.Italic; textBox1.Font = new Font((string)cboFont.SelectedItem, 10, ..
using System;using System.Windows.Forms; namespace test_Console_N_Window_HdlEvt{ class MainApp : System.Windows.Forms.Form { public void MyMouseHandler(object sender, MouseEventArgs e) { Console.WriteLine("Sender : {0}", ((Form)sender).Text); Console.WriteLine("X:{0} Y:{1}", e.X, e.Y); Console.WriteLine("Button:{0}, Clicks:{1}", e.Button, e.Clicks); Console.WriteLine(); } public MainApp(string t..
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms; namespace test_Console_N_Window_HdlEvt{ class MainApp : System.Windows.Forms.Form { static void Main(string[] args) { MainApp form = new MainApp(); form.Click += new EventHandler( (sender, eventArgs) => { Console.WriteLine("Closing Window.."); Application.Exit(); }); Console.WriteLine("S..
- console 로 프로젝트 생성 후, 프로젝트 -> 참조 추가 : system.windows.forms 추가 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows.Forms; namespace test_Console_N_Window_HdlEvt{ class MainApp : System.Windows.Forms.Form { static void Main(string[] args) { System.Windows.Forms.Application.Run(new MainApp()); } }} MainApp 에서 form 상속 받고, application.run 을 이용해서 Mai..
- Total
- 331,919
- Today
- 0
- Yesterday
- 89
- 알프스목초지1-4
- Joseph Redmon
- 리눅스
- C# 패널
- 자신만의향
- PolyBridge1-4
- DaleEvans
- C# 패널 예제
- PolyBridge1-3
- 믿는다는것
- 알프스목초지1-3
- PolyBridge1-5
- PolyBridge하는법
- 인생의시간
- 알프스목초지1-2
- PolyBridge1-1
- OnlyICan
- 분할작업
- Nina Fedoroff
- 1Day1Sentence
- c#
- 알프스목초지1-1
- 사람의인생
- ted
- PolyBridge
- 좋은글귀
- 알프스목초지1-5
- PolyBridge1-2
- 폴리브릿지
- C# 판넬 예제
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 |
- 2017/08 (4)
