How do I automatically show dialog on form Application.Run

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.
 
H

Herfried K. Wagner [MVP]

* "=?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()
///
 
G

Guest

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()
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top