|
-
Sep 16th, 2001, 10:55 AM
#1
Thread Starter
Member
Message Box / Dialogs: How do you do that?!?
How can I create my own dialogs (eg. Mesage box) that halt everything until they're done? I can't figure out how to make a function that only returns to it's calling code once the dialog form is unloaded. And also, how do you disable everything else on the screen so that the user can only click 'OK' on the dialog form or whatever?
-
Sep 16th, 2001, 11:00 AM
#2
PowerPoster
open the dialog form with the modal option...
-
Sep 16th, 2001, 11:06 AM
#3
Ahhhhhhhhhhh thx chrisjk you learn me what modal is today!
-
Sep 18th, 2001, 11:34 AM
#4
Thread Starter
Member
Right. Thanks!
So this means that the code after this only runs when the form that was shown is unloaded?
-
Sep 18th, 2001, 12:49 PM
#5
PowerPoster
Yep,...here's a quick test you can do
VB Code:
' Form1 Code
Private Sub Command1_Click()
Form2.Show vbModal
MsgBox "I continued only after form2 was closed"
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|