Cris asked 2016-07-26 13:18:29 UTC
Hi,
When a TextBox has invalid data, Validating event still allows the cursor to jump to the next available control and just returns back to control being validated event if the e.Cancel = true. In WinForm, the cursor stays at the control until it passes the validation logic.
Another observation that needs patience. Run the attached sample. Click on "Full Name" textbox but don't enter anything -> Click "City" textbox for several times (don't know how many) in quick succession. Once you get your luck, you will be able to enter data in City textbox even if FullName hasn't passed the validation yet.
Thanks.
Cris asked 2016-07-26 13:18:29 UTC
Hi,
When a TextBox has invalid data, Validating event still allows the cursor to jump to the next available control and just returns back to control being validated event if the e.Cancel = true. In WinForm, the cursor stays at the control until it passes the validation logic.
Another observation that needs patience. Run the attached sample. Click on "Full Name" textbox but don't enter anything -> Click "City" textbox for several times (don't know how many) in quick succession. Once you get your luck, you will be able to enter data in City textbox even if FullName hasn't passed the validation yet.
Thanks.