Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The constructor
Message
 
To
14/07/2004 10:03:44
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00924188
Message ID:
00924256
Views:
13
Thanks for the reply Bonnie. Yeah I thought that location was set after InitializeComponent() but it wasn't I ended up using the OnLocationChanged event.

Einar
>Einar,
>
>The constructor is like the Init ... notice that it executes the InitializeComponent() method. After that method executes, all your controls are defined and so should their position be defined. You can put code in the constructor after the InitializeComponent() method. Some things don't happen until after the Form/Control's load, so you may have to hook up an EventHandler to the Load Event and check there (but I'm pretty sure your locations should be there after the InitializeComponent()).
>
>~~Bonnie
>
>>I was under the impression that a control's constructor was comparable to load() or init() in VFP, but I notice that the location property of my object is {x=0, y=0} when the constructor is executed. Now I know that the location of my object is no (0,0) but at the time the constructor is executed it appears to be. Is there another event that I can use that fires shortly after the contstructor that will know what the location of my object is?
>>
>>Thanks,
>>Einar
Semper ubi sub ubi.
Previous
Reply
Map
View

Click here to load this message in the networking platform