J
jehugaleahsa
Hello:
I noticed that if you set a button's DialogResult in Windows Forms,
clicking it immediately closes the window. I would like to validate my
form _before_ it closes. Technically, I could set the dialog result
manually inside of a click event handler. I was wondering what was the
standard approach to implement simple dialog windows.
Do people generally set the DialogResult value for the buttons? Do
they set the Accept and Cancel Button for the forms? How is validation
performed? I don't want to validate each control; just the form all at
once when they user clicks okay.
Thanks,
Travis
I noticed that if you set a button's DialogResult in Windows Forms,
clicking it immediately closes the window. I would like to validate my
form _before_ it closes. Technically, I could set the dialog result
manually inside of a click event handler. I was wondering what was the
standard approach to implement simple dialog windows.
Do people generally set the DialogResult value for the buttons? Do
they set the Accept and Cancel Button for the forms? How is validation
performed? I don't want to validate each control; just the form all at
once when they user clicks okay.
Thanks,
Travis