|
-
Oct 5th, 2011, 10:12 PM
#1
Thread Starter
Lively Member
Is there a way to disable "Cancle" on OpenFileDialogs and SaveFileDialogs?
I have some code that runs on "Ok" for OpenFileDialogs and SaveFileDialogs.
If the user presses cancle without selecting something, the program crashes and gives me a headache because it sets off a chain reaction that I won't get into detail about.
So is there a way to make it so that "Cancle" is grayed out or something on the Dialog Boxes?
If not, is there an alternative that could solve this problem?
Edit: The code that causes the crash (and subsequent headache) doesn't run directly from the "Ok" action
Last edited by Lucien Montierre; Oct 5th, 2011 at 10:15 PM.
Reason: Extra Detail
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
|