Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27440

VS 2012 CreateParams is being called multiple times

$
0
0
Why is CreateParams class is called multiple times when form is first time loading?
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

Output for an empty form:
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}}


Viewing all articles
Browse latest Browse all 27440

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>