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

Embarassing newbie question [Textbox]

Status
Not open for further replies.

RocAFella2007

Technical User
Mar 21, 2007
45
GB
Hi, I know im going to sound dumb but how do I create a single method to handle the TextChanged event for 5 Textboxes?
 
[tt]
Private Sub TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged, TextBox2.TextChanged etc., etc.[/tt]


Hope this helps.

[vampire][bat]
 
... handles textbox1.TextChanged, textbox2.TextChanged, and so on
 
Hi, I have done what you have said at the top of the coding, but it says the following:

Sub 'textChanged' conflicts with the event 'textchanged' in the base class 'control' and so should be declared as 'shadows'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top