2 things. 1)How would I minimize a window through code? 2)How could I detect when the user minimizes the window? Thanks.
Printable View
2 things. 1)How would I minimize a window through code? 2)How could I detect when the user minimizes the window? Thanks.
1-
2-PHP Code:this.WindowState =FormWindowState.Minimized;
PHP Code: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.