Pop up dialog after Main Form displayed

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

Hi all,

I am developing a windows application. After the main form is displayed, I
want to immediately pop up a message box e.g. MsgBox("Hello").

However, if I place the MsgBox code inside MainForm_Load(,) MyBase.Load, the
message box will appear before the display of the main form.

So in which form event or method we can know the main form has just been
displayed?

Thanks,
Jason
 
Jason said:
However, if I place the MsgBox code inside MainForm_Load(,)
MyBase.Load, the message box will appear before the display of the
main form.

Try adding "Me.Show()" directly before the MsgBox().
 
Hello,

I cannot find a "Shown" event in a form. Where could you find it? I am using
..NET 1.1

Thanks,
Jason


rowe_newsgroups said:
Or you could put it in the form's "Shown" event.

Thanks,

Seth Rowe
 

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

Back
Top