Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Determining Exit Method

Question:
I am currently experimenting with VB 3.0. In version 1.0 common dialogs provided the information about which button was used to exit from the dialog. I want to know how can I know how a common dialog object was exited? Is the answer suggested somehow in any variable?

Answer:
The assumption that is made when you use the CommonDialog is that the user will do something in the window and press the OK button. If the user does press the Cancel button, setting the CancelError property to "True" will cause the common dialog to generate a trappable error. Other than that, there are not any other ways to close the window.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date