/// <summary> /// 이 프로그램의 초기화 역할 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Form1_Load(object sender, EventArgs e) { /* Main 스레드 외의 스레드에서 WinForm의 컨트롤을 * 접근할 때 Exception방지를 위해 delegate로 * 메서드를 지칭할 수 있게 만들었다. */ addMsgData = AddRecvListBox; addClientAddress = AddClientAddressListView; delClientAddressFromListView = DeleteClientAddressFromListView; }
public Form1() { InitializeComponent(); //Timer timer = new System.Timers.Timer(); /*Exception 원인 1)*/ addMsgdata = AddRecvListBox; addClientAddress = AddClientAddressListView; this.Load += Form1_Load; this.FormClosed += Form1_FormClosed; //CheckForIllegalCrossThreadCalls = false; }
public 게임() { InitializeComponent(); addMsgData = AddRecvListBox; progressBar1.Style = ProgressBarStyle.Continuous; progressBar1.Maximum = 60; this.DoubleBuffered = true; this.MouseMove += 게임_MouseMove; this.MouseDown += 게임_MouseDown; this.Paint += 게임_Paint; }
private void MainForm_Load(object sender, EventArgs e) { imageList1.Images.Add(Properties.Resources.GOGH); imageList1.Images.Add(Properties.Resources.GOGH2); imageList1.Images.Add(Properties.Resources.GOGH3); imageList2.Images.Add(Properties.Resources.Piccaso); imageList2.Images.Add(Properties.Resources.piccaso2); imageList2.Images.Add(Properties.Resources.piccaso3); imageList3.Images.Add(Properties.Resources.d); imageList3.Images.Add(Properties.Resources.d2); imageList3.Images.Add(Properties.Resources.d3); btnViewImageMainForm1.Image = imageList1.Images[0]; btnViewImageMainForm2.Image = imageList2.Images[0]; btnViewImageMainForm3.Image = imageList3.Images[0]; ///김보라 ///MainForm 시작하는 부분 사이즈 seting 값 /// this.Size = LoginForm.sUID.Trim().ToUpper() == "ADMIN" ? new Size(1504, 636) : new Size(640, 650); addMsgData = AddtbChattingRoomMainForm; }
private void Form1_Load(object sender, EventArgs e) { addMsgData = AddRecvListBox; //this.mp3Player.EnableContextMenu = true; //this.mp3Player.FileName = @"C:\Lecture\_5_CSharp\_팀플_연습\_팀플_연습2\캐치마인드.mp3"; }
private void Form1_Load(object sender, EventArgs e) { addMsgData = AddLogListBox; }
private void 게임_Load(object sender, EventArgs e) { // 펜 이동 제한 rect = new Rectangle(135, 40, 450, 450); addMsgData = AddRecvListBox; }