Question about Windows Forms development in VS2010/dot net framework 4. We have a form that is raised as a dialog. The form has an OK button that had it's DialogResult property set to OK. I needed to perform some validation so I set the
DialogResult property to None and created an event handler for the click of the button. After all my validations passed I need it to go on it's merry way, as if the the button had it's DialogResult property set to OK. How can this be done in code?
I'm thinking I need to raise the DialogResult.OK event or something similar. Please help. Thanks.
View Complete Post