Is there a way to trace the events that happen, say, when you click a button, or type into a text box?
I've seen some docs on the order of events fired for certain controls, but I'd like to actually see, or list them happening.
Thanks,
Mike
Printable View
Is there a way to trace the events that happen, say, when you click a button, or type into a text box?
I've seen some docs on the order of events fired for certain controls, but I'd like to actually see, or list them happening.
Thanks,
Mike
Not really what you want but try this:
VB Code:
Private Sub txtInput_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtInput.TextChanged Debug.WriteLine("txtInput_TextChanged: " + txtInput.Text) End Sub Private Sub txtInput_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtInput.KeyPress Debug.WriteLine("txtInput_KeyPress: " + e.KeyChar) End Sub Private Sub txtInput_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtInput.KeyDown Debug.WriteLine("txtInput_KeyDown") End Sub Private Sub txtInput_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtInput.KeyUp Debug.WriteLine("txtInput_KeyUp") End Sub
Download this and run it. Add a txtInput textbox in a form, build and run from explorer and not from the IDE. Type in the textbox and watch the output.
Cheers,
NTG
Thanks NTG, but as you said, not really what I want. I know I could write a bunch of code to trace every event for every object (ugh), but was hoping there might be a way to just trace the events as they're fired. Like you could just peek into what's happening.
Thanks,
Mike
Perhaps this ?
Cheers,
NTG
Thanks for the link. Not sure yet all it can do, but it is pretty dang cool.
Hi,
The link appears to be dead. ntg are you able to supply an up-to-date link? Mike Hildner, did you ever get a solution to the problem? I want to do exactly what you were asking about.