I have about 15 text boxes and instead of going to the event handler on each one and enabling a button on a change..
For example:
Private Sub txtIsbnUpc_TextChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles txtIsbnUpc.TextChanged
cmdSearchresults.enabled = true
End Sub
Instead of going through each one and typing that is there a simpler way?
Why don’t you extend the
Handleslist and handle all textBoxes events in one handler?You can use
senderto check which textBox fired that handler, if it’s needed for your logic.