[C#] 창이 화면 밖으로 나가지 못하게 제어하기
private void Form1_LocationChanged(object sender, EventArgs e) { if (this.Location.X = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width) this.Location = new Point(System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Width - this.Width, this.Location.Y); if (this.Location.Y = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height) this.Location = new Point(this.Location.X, Syste..