Results 1 to 4 of 4

Thread: CommonDialog Cancel Problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2004
    Location
    Belgium
    Posts
    77

    CommonDialog Cancel Problem

    Hi,

    I just wanted to know if it's possible to disable event producing when you click cancel on a commondialog form.

    Exemple :

    With a OpenFileDialog, I click the button open on my prog it launch the OpenFileDialog, I use it to open my DB. Then I reclick open button in my prog, the OpenFileDialog open again and the name of the previously openned DB is by default selected (until there no prob, it's normal), but then If I click Cancel it reopen the DB again, even if I delete the name of the DB in the OpenFileDialog.

    Is there a way to prevent this, or maybe clear the buffer or something like this ?

    Thansk in advance

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Reset() the dialog before you open it each time.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2004
    Location
    Belgium
    Posts
    77
    Thanks you

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    You're Welcomes.


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