Guest cgchris99 Posted August 26, 2002 Posted August 26, 2002 I have a form that has a bunch of textboxes and checkboxes. I need to know whenever any field gets changed on this form. Is there a way to inherit some sort of class for this? Or do I have to write this piece of code for every field/checkbox/combo, etc. RecordChanged=True Thanks for any advice Quote
*Gurus* Thinker Posted August 26, 2002 *Gurus* Posted August 26, 2002 How about a generic handler for all textboxes... Private Sub AnyTextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles TextBox1.TextChanged, TextBox2.TextChanged, TextBox3.TextChanged, TextBox4.TextChanged Dim myTextBox As TextBox myTextBox = CType(sender, TextBox) 'do something with myTextBox End Sub Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.