|
-
Oct 7th, 2004, 07:29 PM
#1
Thread Starter
Frenzied Member
Trace Events?
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
-
Oct 8th, 2004, 01:42 AM
#2
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
-
Oct 8th, 2004, 09:09 AM
#3
Thread Starter
Frenzied Member
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
-
Oct 8th, 2004, 01:18 PM
#4
Perhaps this ?
Cheers,
NTG
-
Oct 8th, 2004, 01:58 PM
#5
Thread Starter
Frenzied Member
Thanks for the link. Not sure yet all it can do, but it is pretty dang cool.
-
May 19th, 2008, 03:55 AM
#6
Re: Trace Events?
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.
This world is not my home. I'm just passing through.
-
May 19th, 2008, 04:02 PM
#7
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|