2 things. 1)How would I minimize a window through code? 2)How could I detect when the user minimizes the window? Thanks.
Last edited by jordan23; Jul 8th, 2004 at 06:20 AM.
1- PHP Code: this.WindowState =FormWindowState.Minimized; 2- PHP Code: private void Form1_SizeChanged(object sender, System.EventArgs e) { if (this.WindowState==FormWindowState.Minimized) MessageBox.Show("Window minimized"); }
this.WindowState =FormWindowState.Minimized;
private void Form1_SizeChanged(object sender, System.EventArgs e) { if (this.WindowState==FormWindowState.Minimized) MessageBox.Show("Window minimized"); }
Thanks Pirate, that makes sense. I appreciate it.
np.
Forum Rules