Author: Jackxxx | Posted on: 12/4/2009 2:18:56 PM | Views : 251

 Is it possible to stop the OnTextChanged event if the control has a rang validator and the entry is not valid?
I tried this, but the OnTextChanged event code still happens.
Protected Sub txtQty_OnTextChanged(ByVal sender As Object, ByVal e As System.EventArgs) If Not rangvalQty.IsValid Then Exit Sub End If Try 'Do something here if valid. lblMessage.Text = "This has happend" Catch ex As Exception lblmessage.Text = ex.Message End Try End Sub
 
...

Go to the complete details ...