popup and wait

i've been using MessageBox.show("something"); as a popup box to display a message.

I'd like to pop up a new form instead, to give me more control over how the box is layed out.

THe problem is, when i pop this window up, the program continues to run. Is there a way to get the program to wait until a button is pressed in the new popup form, then continue on This is just how the MessageBox works.


Thanks!

heres a section of code:
[code = "csharp"]
login LoginWindow = new login();

LoginWindow.show();
//wait until OK button is pushed
[/code]


Answer this question

popup and wait

  • R.Tutus

    Don't forget to mark helpful posts as answers.

  • ArcPadNewbie

    Use ShowDialog() instead of Show() to make the new form modal and block returning to the caller of it until it has closed.

  • Shyamal Patel

    your the man,

    thanks!

  • popup and wait