Controls still respond to hover and click (meaning, the color changes), but no action is taken. For some context, my Validating handler begins by showing a Message Box (asking the user whether to save); if the result is "Cancel", I set e. I am dropped back to the same page, and the UI locks up as described.
I can't navigate to other tabs, or even close the app using the "X" button. After much research, I've come to the conclusion that this cannot be done using events raised at the Tab Page level.
You do not have to disable the Form’s Auto Validate property.
However, I prefer to call it explicitly and handle all validation at once since you most likely will take action only if the entire control’s children pass validation. The most important thing to recognize here is how precise you can be with the validation error message in the error provider.
I have a Tab Control with multiple Tab Pages which each contain multiple controls.
For example, you could display an error message, change the field’s background color, or at least beep to let the user know that focus did not leave the field because something is wrong. The event triggers even if the user tries to close the form.Specifically, I want to check that they have selected a radio button. Forms; namespace Tab Event Test I have encountered a similar bug, which happens even when I simply click on the tabs.What happens is that if validation fails (meaning, I set Cancel Event Args to true), the UI doesn't respond to input anymore. However, my textboxes are still working; the controls that locks up includes buttons, checkboxes, and nested tab Controls.I've tried adding an error Provider, adding a Select Tab call, adding a Focus() call to both the tab and a control on the tab, and adding a Message Box. I found one MSDN forum post from 2006 that was similar to my problem and the conclusion there was that this was a bug in the . If that's true, it still hasn't been fixed from what I can see.The Message Box allowed me to click OK, but then returned me to the "locked" UI. The way I accomplished the validation was by using the Deselecting Event on the Tab Control.