Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catching Events 1

Status
Not open for further replies.

s2001

Programmer
Dec 7, 2001
132
US
Hello All,

Can you guys help me with this?

Code:
Private sub text1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles text1.TextChanged
    'do some validation
End Sub

Private sub Cancel_click(Byval sender as object, ByVal e As System.EventArgs)
    'cancel process
End Sub

text1's autopostback set to true. The moment the user tabs out or basically loses focus off the text box, the validation takes place. What is happening here is if the user has the cursor focus on the textbox and click on the cancel button, text validation takes place but cancel click is ignored. So the user has to click on the cancel button again. Is there any way, i can catch the Cancel click event too?

Hope i clear. Any help would be great.



Thanks,
MB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top