Sign in to follow this  

VB - modal dialog boxes

Recommended Posts

This little question has been driving me nuts for a while, so I figured I would ask. I have created a custom dialog box in VB. I use the MyDialog.Show(vbModal) method to pop it up and wait for the user to choose something. Now, how the heck do I find out what the user clicked??? In VC++, this was just a matter of looking at the return value of the DialogBox() function. But the Show method does not return anything! So how do I know if my user clicked OK or CANCEL? Thanks, BrianH

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this