How do I automatically show dialog on form Application.Run

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wish to display a dialog form after the main form has started and display. Where is the logical place to put my display dialog code to show the my "Login" dialog after the main form has been display.

Thanks.
 
* "=?Utf-8?B?UmljaGFyZCBGb3Jzcw==?= said:
I wish to display a dialog form after the main form has started and display. Where is the logical place to put my display dialog code to show the my "Login" dialog after the main form has been display.

In the form's 'Load' event handler, place something like that:

\\\
Me.Show()
Me.Refresh()
Dim f As New FooForm()
f.ShowDialog()
///
 
Thank you. This worked fine.

Herfried K. Wagner said:
In the form's 'Load' event handler, place something like that:

\\\
Me.Show()
Me.Refresh()
Dim f As New FooForm()
f.ShowDialog()
///
 
Back
Top