Perhaps using StackTrace (maybe better, I'm not sure ...). Try the following code.
Private Sub TextBox1_Events(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged, TextBox1.GotFocus
Dim s As New StackTrace(True)
For Each f As StackFrame In s.GetFrames
Debug.WriteLine(f.GetMethod.Name)
Next
End Sub
When the text field receives focus, the following is recorded:
TextBox1_Events
OnGotFocus
OnGotFocus
Wmsetfocus
Ect .......
Where when its text changed an event
TextBox1_Events
OnTextChanged
OnTextChanged
Ect ....
I'm sure you could write something using this to do what you need. But I totally agree with the other handler guys.
source
share