본문 바로가기

반응형
   

전체 글

(1624)
체크박스, 컨트롤 체크박스는 배열에 넣을때 일일이 넣어줘야 한다. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsForms01 { public partial class CheckBox01 : Form { //체크박스 배열 List list; public CheckBox01() { InitializeComponent(); list = new List(); } private void button1_Click(objec..
TextBox Multiline, PasswordChar, WordWrap, ScrollBar, ReedOnly, HideSelection 블럭은 포커스가 읽어 버린 경우에는 저장은 되있지만 보이는 것은 안잡혀있는것으로 보인다. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsForms01 { public partial class TextBox01 : Form { public TextBox01() { InitializeComponent(); } private void button1_Click(object sender, EventArgs..
라벨 (Label) 텍스트 형태로만 쓰인다. 링크라벨 : 링크를 클릭했을때 페이지 링크를 할때 쓰인다. 출력용으로만 많이 쓰인다 텍스트 출력 용도 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsForms01 { public partial class Label01 : Form { public Label01() { InitializeComponent(); } private void linkLabel1_LinkClicke..
버튼 클릭시 색 넣기를 한번에 처리하기, 메소드로 묵어서 처리를 단계별로 보여줌 모든 컨트롤은 Tag가 존재한다 모든지 다넣을수 있다. Tag : 빈방, 넣고 싶은걸 마음대로 넣는다. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsForms01 { public partial class Button02 : Form { public Button02() { InitializeComponent(); } private void button1_Click(object sender, Eve..
Visible, FlatStyle, AutoSize, 니모닉(nemonic), TabIndex, TextAlign, 등 각종 속성 니모닉 : 만드는 법은 텍스트로 -> 테스트(&T) 이러한 형태로 만든다. 이미지 저장은 \bin\Debug 폴더에서 img 폴더를 만들어서 관리하는 것이 리소스 관리에 편하다. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsForms01 { public partial class Button01 : Form { public Button01() { InitializeComponent(); } pri..
컨테이너, 탭컨트롤 (TabControl) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsForms01 { public partial class TabControl01 : Form { public TabControl01() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e) { //자식역할 Button btn = new Button(); //할아..
패널(Panel) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsForms01 { public partial class Panel01 : Form { private TextBox txt; public Panel01() { InitializeComponent(); txt = new TextBox(); } private void button1_Click(object sender, EventArgs e) { //폼 or..
윈폼(winform) 이벤트, 상속 버튼 생성, 데이트타입 이용 예제 윈폼(winform) 이벤트, 상속 버튼 생성, 데이트타입 이용 예제using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Collections; namespace WindowsForms01{ public partial class Study01 : Form { private int a; private int b; private int c; private int d; private int f; public Study01() { ..

반응형