Snippet Type(s):
Abstract (from author):
Saves a windows size to settings if the window is a normal state.
Description (from snippet):
Saves a windows size to settings if the window is a normal state.
Code Block:
1 'Saves a windows size to settings if it is in a normal state.
2 'TODO - Add a Setting to your Project named WindowSize
3 'of type System.Drawing.Size and default it to 0,0
4 If Me.WindowState = FormWindowState.Normal Then
5 My.Settings.WindowSize = Me.Size
6 End If
Download Now!
Download the snippet file by clicking the download button below. You may customize the snippet shortcut prior to downloading below.