当需要给多个文本框做相同的操作时,可以在Handles后面加上文本框的某个事件,各事件之间用逗号隔开,例如
Private
Sub TextBox1_TextChanged()
Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.TextChangedEventArgs) Handles Textbox1.TextChanged, Textbox2.TextChanged, Textbox3.TextChanged
Textbox1.Text = "aaa"
End Sub
Textbox1.Text = "aaa"
End Sub