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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form.show problem 2

Status
Not open for further replies.

Jooky68

Programmer
Jul 10, 2002
231
0
0
US
I made a custom dialog box and I am trying to show it. I have the frm.show command in the middle of another forms code. After I hit the frm.show I want the other forms code to stop until the user has entered the information and clicked ok. For some reason the forms code where i call the custom dialog box keeps going till it hits an end sub. Is there a way i can get the forms code to stop when it loads the custom dialog box until the user selects ok on the custom dialog box?

I usually use vba which stops the form or module code when another form is loaded until that form is resolved....
Anyone help??? Thanks in advance
 
Try setting the form to modal so that the user must deal with it before continuing.

frm.show vbmodal

Thanks and Good Luck!

zemp
 
Instead of:

Code:
frm.Show

use this:

Code:
frm.Show vbModal

tbuch
 
Does anyone else think Jooky should try:
form1.show vbmodal
 
I use another technique to get dialog boxes in VB

in the form you call - declare public variable
Public Status as Variant

Call the dialog form and start loop
that will exit only after Status will not be Null

DlgForm.Show
do while not isnull(DlgForm.Status)
doevents
loop

This work,
But I don't know how this looks from the
point of wiew of low level and processor resources usage.

 
totally new idea:

form1.show 1



RUN FunnySignatureMessage
 
if you have form1 calling form2...

Form2.Show 1, Me

This will require Form2 to terminate before execution continues on Form1

Have Fun, Be Young... Code BASIC
-Josh Stribling
cubee101.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top