본문 바로가기

반응형
   

전체 글

(1624)
StackPanel, ScrollViewer, WARPPanelXAML, Grid XAML, UniformGrid, Canvas, DockPanel StackPanel XAML로 생성 StackPanel CS로 생성 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace WPFEx { /// /// StackPanel02.xa..
윈폼(winform) MDI 부모 자식창 예제 윈폼(winform) MDI 부모 자식창 예제SDI : Single Document(Form) Interface MDI : Multi Document(Form) Interface 여태까지 했던건 싱글 폼(폼 하나에 폼하나만 있는것.) 부모창 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 Start { public partial class MDI : Form { private int n; public MDI()..
윈폼(winform) 메모장 예제 윈폼(winform) 메모장 예제 인쇄 -> 인쇄할 내용을 직접 생성 -> GDI+ 사용 -> 그리고(도화지) -> 인쇄 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.IO;//** namespace MemoEx { public partial class Memo : Form { #region 멤버 변수 //멤버 변수(살려두기 위해서.. or 모든 메서드에서 접근) private string current..
윈폼(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; namespace WindowsFormsTest{ public partial class 회원가입 : Form { public 회원가입() { InitializeComponent(); } private void 회원가입_Load(object sender, EventArgs e) { comboBoxJob.SelectedIndex = 0; } pri..
윈폼(winform) TreeView, ListView 사용예제 윈폼(winform) TreeView, ListView 사용예제반드시 이미지 리스트를 통해서만 넣을수 있다. 트리뷰는 선택이 됐을때 안됐을때 이미지를 다르게 줄수 있다. 노드 속성을 많이 사용한다. 할아버지 레벨0 아버지 레벨1 형 레벨2 트리뷰가 Nodes라는 컬렉션으로 관리한다. 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 Start { public partial class TreeView : Form ..
윈폼(winform) ModalModeless, Dialog, ProgressBar, Timer 사용예제 윈폼(winform) ModalModeless, Dialog, ProgressBar, Timer 사용예제윈폼에서 자식창을 뛰우는 방법은 2가지가 있다. : 모달 창 방식, 모달리스 Modal : 부모한테 포커스가 간다면 전에 상태 값이 사라지기 때문에 자식편집이 끝날때까지 부모에게 가지 못하게한다. 외동자식 MessageBox.Show와 같은형태 확인을 누르기전엔 절대 다른곳 접근 불가능, 메시지박스 처럼 사용 Modeless : 자식편집이 있는 상태에서도 부모창에 포커스가 가능하다. 하나이상의 자식을 가질수 있다. DialogResult 속성은 모달창에서만 사용하는 속성이다. using System; using System.Collections.Generic; using System.ComponentM..
Ancor, Dock, Spliter
ToolStrip, NotifyIcon, StatusBar 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 Test { public partial class NotifyIcon : Form { public NotifyIcon() { InitializeComponent(); } private void 종료ToolStripMenuItem_Click(object sender, EventArgs e) { Application.Exit(); } private void 아이콘감추..

반응형