Validate dialog on OK button or Enter key
I have a dialog with a bunch of checkboxes and OK and Cancel buttons. When the user clicks OK or presses Enter, I want to validate the other controls and keep the dialog open if none of the checkboxes are checked. I know how to test the checkboxes, but I am not sure how to do this with an event handler and keep the dialog open. Any suggestions or pointers would be appreciated.
Rick
