O
Oenone
In VB6 I used to use the Load event of a Form to set its position on the
screen (based on wherever the user put the form the last time they used it).
This was ideal as it fired before the form became visible.
Since moving to VB.NET I'm finding that the Form is already displayed on
screen when the Load method executes. This means that I get a slight but
noticeable flicker when the form is first opened, as it moves from the
default position to the position I programmatically set it to.
Is there a better event that I can use for this than the Load event?
For info, I'm displaying the form as follows:
Dim myForm as New SomeForm
myForm.ShowDialog()
Many thanks,
screen (based on wherever the user put the form the last time they used it).
This was ideal as it fired before the form became visible.
Since moving to VB.NET I'm finding that the Form is already displayed on
screen when the Load method executes. This means that I get a slight but
noticeable flicker when the form is first opened, as it moves from the
default position to the position I programmatically set it to.
Is there a better event that I can use for this than the Load event?
For info, I'm displaying the form as follows:
Dim myForm as New SomeForm
myForm.ShowDialog()
Many thanks,