Datagridview cell validating e cancel muslim speed dating london 2016
in the btn Cancel_Click event: Removehandeler Text Box1.validating, Addressof Text Box1_Validating -- Terry "Darin" wrote: I know that, but the problem is when the user clicks EXIT, the textbox.validating event is called BEFORE the cancel.click is done, so the textbox is being validated.
According to the documentation: "The cancel button for a form is the button control that is clicked whenever the user presses the ESC key." Which says to me the behavior s/b the same!
Darin *** Sent via Developersdex Yes, closing the form causes 'validating' to take place.
One, remove the "control Box" from the form, so the user cant close it that way.
Tags: brittany daniel is dating keenen ivory wayans Free adult chat no regerstrationdating in bradford pa Redtube free sex chat livedatingng Skype hot chat srbija Best sites to random cam sex Free typing sex chat with hot girls Free meet and fuck no registration uk Nude cam 2 cam sites Close() End Sub Private Sub Text Box1_Validating(By Val sender As Object, By Val e As System.
Somewhere in all of that, something must be getting crossed up.
If the handle matched then immediately exit the Validating event without setting e.Hi Al, Don't know if you have been following the thread I started about the escape key "bug", but if you search this community for "Cancel Button vs Escape Key", you can see the result including the work around for the escape key.Down (Down Arrow) and some how (and I never figured this one out) the next control in the tab order, regardless of the Tab Stop property, got focus.-- Al Reid Well it works for me - but one thing I left out - you need to set the cancel buttons 'causes validation' to false.Also note that the "trick" to closing the form is not keeping a seperate "canceling" flag, but to put "e.cancel=False" in the forms closing event.