|
-
Aug 7th, 2003, 05:31 AM
#1
Thread Starter
New Member
Common dialog box - Resolved
Hi,
I am having trouble with a common dialog box. I am bringing up a file section common dialog box for users to select a file. If however the user chooses not to select a file, and instead clicks cancel, how do I know that they have done this? This dialog box still returns the currrently selected filename independent of whether 'OK' or 'cancel' is pressed!
Last edited by VisBeg; Aug 7th, 2003 at 08:10 AM.
-
Aug 7th, 2003, 05:49 AM
#2
Frenzied Member
Set the CancelError property to True then VB will raise an error you can handle this error and can always know that User has pressed clicked... If i remember correclty that err.number is 32755
-
Aug 7th, 2003, 05:51 AM
#3
Thread Starter
New Member
Cheers, It works perfectly!
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
|