Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with forms!!!!

Status
Not open for further replies.

kurgan383

IS-IT--Management
Jan 7, 2003
17
US
hi all, I have a project that has multiple forms. when a condition is met a form pops up over the running form. How do I pause the running form until I am done with the pop up form?
 
What do you mean? The form should stay as is. What do you have that is running on it?

This is the syntax I would use:

IF condition... THEN
Dim frm as New Form2
frm.ShowDialog
ELSE
do something else...
END IF

The other way is to use threading and set the current thread to be the new form.
 
hey thanks, that worked but why? i had...

frm.show instead of frm.showdialog

my way showed the form, but the program continued, your way stops the program until i'm done with the called form. Can you shed some light on this for me?
 
ShowDialog() displays a modal form, similar to VB 6 Form1.Show 1, Me
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top