View Single Post
Old 04-24-2015, 04:00 PM
Gruff's Avatar
Gruff Gruff is offline
Bald Mountain Survivor

Retired Moderator
* Expert *
Join Date: Aug 2003
Location: Oregon, USA - deceased
Posts: 6,440

My take on it is that you cannot trust sizes in the form_load event as graphics have not been generated at that point.

In vb6 I used to use a timer control set for a couple of seconds after form_load.
In the timer event I would do my graphics measurement.

In VB.NET you should use the Form_Shown event as Passel shows or the SizeChanged event if you are creating a control.
Burn the land and boil the sea
You can't take the sky from me

Reply With Quote