c# Programming Glossary: this.windowstate
How to start WinForm app minimized to tray? http://stackoverflow.com/questions/1730731/how-to-start-winform-app-minimized-to-tray When the NotifyIcon is double clicked I have the following this.WindowState FormWindowState.Normal this.Visible true this.ShowInTaskbar..
How do I make a WinForms app go Full Screen http://stackoverflow.com/questions/505167/how-do-i-make-a-winforms-app-go-full-screen true this.FormBorderStyle FormBorderStyle.None this.WindowState FormWindowState.Maximized But interestingly if you swap those..
Is the size of a Form in Visual Studio designer limited to screen resolution? http://stackoverflow.com/questions/6651115/is-the-size-of-a-form-in-visual-studio-designer-limited-to-screen-resolution in Forms.SetBoundsCore like using ILSpy as a decompiler if this.WindowState FormWindowState.Normal base.Height height base.Width width ..
minimize app to system tray http://stackoverflow.com/questions/7625421/minimize-app-to-system-tray object sender EventArgs e if FormWindowState.Minimized this.WindowState mynotifyicon.Visible true mynotifyicon.ShowBalloonTip 500 this.Hide..
Restoring Window Size/Position With Multiple Monitors http://stackoverflow.com/questions/937298/restoring-window-size-position-with-multiple-monitors public MainForm InitializeComponent this is the default this.WindowState FormWindowState.Normal this.StartPosition FormStartPosition.WindowsDefaultBounds.. window state to the saved value which could be Maximized this.WindowState Settings.Default.WindowState else this resets the upper left.. e only save the WindowState if Normal or Maximized switch this.WindowState case FormWindowState.Normal case FormWindowState.Maximized..
|