I created a dialog box with an Ok and Cancel button. How do I tell which button is pressed?
Also, I noticed that VB allows:

If Form1.Command1 Then

or

If Not(Form1.Command1) Then

What does it mean when Form1.Command1 is true or false?