Why is CreateParams class is called multiple times when form is first time loading?
Why is it triggered when Restore is clicked?
Output for an empty form:
Why is it triggered when Restore is clicked?
Code:
Inherits Form
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Console.WriteLine(MyBase.CreateParams.ToString)
Return MyBase.CreateParams
End Get
End Property
Code:
CreateParams {'', '', 0x56cf0000, 0x50001, {0, 0, 300, 300}}
CreateParams {'', '', 0x2cf0000, 0x50000, {-2147483648, -2147483648, 300, 300}}
CreateParams {'', 'Form1', 0x2cf0000, 0x50000, {-2147483648, -2147483648, 300, 300}}
CreateParams {'', 'Form1', 0x2cf0000, 0x50000, {-2147483648, -2147483648, 300, 300}}
CreateParams {'', 'Form1', 0x2cf0000, 0x50000, {-2147483648, -2147483648, 300, 300}}
CreateParams {'', '', 0x2cf0000, 0x50000, {-2147483648, -2147483648, 300, 300}}