Snippet Type(s):
Abstract (from author):
Loads a windows previous size from settings, checking for first use and using design default if not specified.
Description (from snippet):
Loads a windows previous size from settings, checking for first use and using design default if not specified.
Code Block:
1 'Load a windows location from settings, default to design time preferred
2 'location if not specified.
3 'TODO - Add a Setting to your Project named WindowSize
4 'of type System.Drawing.Size and default it to 0,0
5 If Not My.Settings.WindowSize.Width = 0 Then
6 Me.Size = My.Settings.WindowSize
7 End If
Download Now!
Download the snippet file by clicking the download button below. You may customize the snippet shortcut prior to downloading below.