Simulate a message box, center commondialog box
Posted on 1998-09-30
I am tryiny to create something just like a message. Except that it contains a few checkboxes to enable people to select differently. I am trying to use a form to do that.
However I find that for a message box provided by VB, after you click OK, the program execution returns to the line immediately after the message box. The form I created to simulate the message box cannot do that. "Goto" only works within a procedure thus it is not useful.
How can I simulate using a form that will return execution to the point(in the original form) where it was originally called and pass back a variable (of a user created type) to the original form?
The second question is how to center the file open commondialog box?
Thanks in advance.