|
-
May 24th, 2004, 06:04 AM
#1
Thread Starter
Lively Member
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
-
May 24th, 2004, 06:18 AM
#2
Reset() the dialog before you open it each time.
-
May 24th, 2004, 06:23 AM
#3
Thread Starter
Lively Member
Thanks you
-
May 24th, 2004, 06:24 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|