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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If I change a text in a textbox how can I call a function to handle an

Status
Not open for further replies.

Plato2

Programmer
Dec 6, 2002
192
US
If I change a text in a textbox how can I call a function to handle an event something like
Private Sub txtPrice_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtPhone.TextChanged
'do something
end Sub
I tried this function but when I change data in my textbox this function is not called

How can I do that?

Thanks in advance.
 
Private Sub txtPrice_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtPhone.TextChanged
'do something
end Sub

 
What is your textbox called?
Your code handles the TextChanged event for txtPhone, but the name of the sub indicates that your textbox is called txtPrice ....
Private Sub txtPrice_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtPhone.TextChanged



Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top