PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
How-to exit button click event of ( C#) modal dialog without exiting dialog?
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
How-to exit button click event of ( C#) modal dialog without exiting dialog?
![]() |
How-to exit button click event of ( C#) modal dialog without exiting dialog? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi all,
In the OK_Click event of my custom modal dialog I determine that another action must be accomplished before exiting (thus closing) the dialog. But how to do this? Whatever I have tried up to now has caused the dialog to be exited and closed. I'm sure there must be a way. Can someone suggest a solution? Thanks. - Lew |
|
|
|
#2 |
|
Guest
Posts: n/a
|
What is the DialogResult of the OK button? You might want to check it
and clear it if it is set to something. Just a thought |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Chris,
Thanks for your reply. The DialogResult is set to the OK button. But this check is made in the calling form, and I need to intercept and get out of the dialog's OK button click event *without* exiting/closing the dialog. I don't know how to do that. :-( - Lew "Chris Dunaway" <dunawayc@gmail.com> wrote in message news:1117719552.600515.288200@g44g2000cwa.googlegroups.com... > What is the DialogResult of the OK button? You might want to check it > and clear it if it is set to something. > > Just a thought > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Hello All,
I found the answer to my problems here http://www.vbinfozine.com/t_wfdlg.shtml and it works perfectly! I offer this to others that, I am sure, have the same problems. - Lew "Lew Barnesson" <lewb007@centurytel.net> wrote in message news:N72dnTBXz-in_APfRVn-1g@centurytel.net... > Hi all, > > In the OK_Click event of my custom modal dialog I determine that another > action must be accomplished before exiting (thus closing) the dialog. But > how to do this? Whatever I have tried up to now has caused the dialog to > be exited and closed. > > I'm sure there must be a way. Can someone suggest a solution? Thanks. > > - Lew > > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

