Apr 29, 2007 #1 RocAFella2007 Technical User Joined Mar 21, 2007 Messages 45 Location 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?
Hi, I know im going to sound dumb but how do I create a single method to handle the TextChanged event for 5 Textboxes?
Apr 29, 2007 #2 earthandfire Programmer Joined Mar 14, 2005 Messages 2,924 Location GB [tt] Private Sub TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged, TextBox2.TextChanged etc., etc.[/tt] Hope this helps. Upvote 0 Downvote
[tt] Private Sub TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged, TextBox2.TextChanged etc., etc.[/tt] Hope this helps.
Apr 29, 2007 #3 TipGiver Programmer Joined Sep 1, 2005 Messages 1,863 ... handles textbox1.TextChanged, textbox2.TextChanged, and so on Upvote 0 Downvote
Apr 29, 2007 Thread starter #4 RocAFella2007 Technical User Joined Mar 21, 2007 Messages 45 Location GB 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' Upvote 0 Downvote
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'
Apr 29, 2007 #5 earthandfire Programmer Joined Mar 14, 2005 Messages 2,924 Location GB Change the name of the sub!!!! Upvote 0 Downvote