After form loaded event

  • Thread starter Thread starter Michael Jackson
  • Start date Start date
M

Michael Jackson

I need to determine when a .NET 2003 Winforms form has completed loading.
What is the best way to do this?

Thanks
Michael
 
Michael said:
I need to determine when a .NET 2003 Winforms form has completed loading.
What is the best way to do this?

Thanks
Michael

What's wrong with hooking into the Form's Load event? Or do you want
Activate?

/steveA
 
It's my understanding that Form Load event takes place when the form is
loading. I want to know the instance a form has completed loading and is
ready for user interaction.
 
That's true, Load fires right before the form is displayed. You might be
able to get away with handling the Activate or Enter events, but those can
happen multiple times during a form's lifetime.
 
Michael Jackson said:
I need to determine when a .NET 2003 Winforms form has completed loading.
What is the best way to do this?

\\\
Private Sub Form1_Activated( _
ByVal sender As Object, _
ByVal e As EventArgs _
) Handles MyBase.Activated
Static IsActivated As Boolean
If Not IsActivated Then
IsActivated = True
MsgBox("Foo")
End If
End Sub
///
 
Back
Top