Beispiel #1
0
 private void btn_restore_Click(object sender, EventArgs e)
 {
     Win32.PostMessage(base.Handle, Win32.WM_SYSCOMMAND, Win32.SC_RESTORE, 0);
 }
Beispiel #2
0
 private void btn_max_Click(object sender, EventArgs e)
 {
     Win32.PostMessage(base.Handle, Win32.WM_SYSCOMMAND, Win32.SC_MAXIMIZE, 0);
 }