When you want to replace all spaces entered in Textboxes, say
txtH1
,
txtH2
,
txtH3
,
txtH4
, instead of writing separate event handlers like :
Private Sub txtH1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtH1.TextChanged
End Sub
Private Sub txtH2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtH2.TextChanged
End Sub
and so on,
Private Sub txtH1to7TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtH1.TextChanged,txtH2.TextChanged, txtH3.TextChanged,txtH4.TextChanged
End Sub
would do the job.
This can be extended to the
same event of any number of the
same type of control.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.