Results 1 to 3 of 3

Thread: Common dialog box - Resolved

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2003
    Location
    England
    Posts
    13

    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.

  2. #2
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2003
    Location
    England
    Posts
    13
    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
  •  



Click Here to Expand Forum to Full Width