A general question and a specific one.
1. Is there a Spy utility that shows events for a .NET application
2. What events are fired when calling Form.Show()
? 10 3595
On Nov 1, 8:39 am, Martijn Mulder <i@mwrote:
A general question and a specific one.
1. Is there a Spy utility that shows events for a .NET application
2. What events are fired when calling Form.Show()
?
I have a similiar requirement and have not found a good solution. I
have submitted a request to Dino Dino Dino Esposito of MSDN. If I get
something back, I will post it here.
Colby
If there was a spy utility, it would have to hook into the CLR itself
(and probablys low down your app in the process, as it would use the
debugging hooks, most likely) to find when events are fired. AFAIK, there
isn't any such thing.
There might be solutions which work by requiring you to place code in
the event firing sites, but I doublt that is what you are looking for.
When calling the Show method on a Form, the Shown event will be fired if
it is the first time the form is shown. The VisibleChanged event can be
fired if the form is hidden as well. The Activate event can also be fired
as well, I believe.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Colby Africa" <co**********@gmail.comwrote in message
news:11**********************@o80g2000hse.googlegr oups.com...
On Nov 1, 8:39 am, Martijn Mulder <i@mwrote:
>A general question and a specific one.
1. Is there a Spy utility that shows events for a .NET application 2. What events are fired when calling Form.Show() ?
I have a similiar requirement and have not found a good solution. I
have submitted a request to Dino Dino Dino Esposito of MSDN. If I get
something back, I will post it here.
Colby
"Martijn Mulder" <i@mwrote in message
news:47***********************@news.wanadoo.nl...
>A general question and a specific one.
1. Is there a Spy utility that shows events for a .NET application
2. What events are fired when calling Form.Show()
?
Events are nothing more than Windows Messages posted to the Message Queue of
the owning thread of a Window. If you want to view the messages posted to a
specific application/thread/window, you can use is Spyxx.exe included with
VS2005 (Check Common7\tools).
Willy.
On Nov 1, 3:25 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.bewrote:
1. Is there a Spy utility that shows events for a .NET application
2. What events are fired when calling Form.Show()
?
Events are nothing more than Windows Messages posted to the Message Queue of
the owning thread of a Window. If you want to view the messages posted to a
specific application/thread/window, you can use is Spyxx.exe included with
VS2005 (Check Common7\tools).
Well, they *may* be Windows Messages - but not all events will involve
that. It's worth the OP being clear about the different between .NET
events and Windows Messages.
Jon
"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:11*********************@o38g2000hse.googlegro ups.com...
On Nov 1, 3:25 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.bewrote:
1. Is there a Spy utility that shows events for a .NET application
2. What events are fired when calling Form.Show()
?
Events are nothing more than Windows Messages posted to the Message Queue of the owning thread of a Window. If you want to view the messages posted to a specific application/thread/window, you can use is Spyxx.exe included with VS2005 (Check Common7\tools).
Well, they *may* be Windows Messages - but not all events will involve
that. It's worth the OP being clear about the different between .NET
events and Windows Messages.
Jon
True, I have no idea what he meant with Q #3 , Q #1 needs some
clarification, but #2 makes me think he's after the "Windows" Events.
Willy.
On Nov 1, 4:21 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.bewrote:
True, I have no idea what he meant with Q #3 , Q #1 needs some
clarification, but #2 makes me think he's after the "Windows" Events.
Possibly - or possibly the events that he might be able to subscribe
to, only some of which will relate to Windows events. It's unfortunate
that "event" is a fairly overloaded word :(
Jon
>>Events are nothing more than Windows Messages posted to the Message Queue of the owning thread of a Window. If you want to view the messages posted to a specific application/thread/window, you can use is Spyxx.exe included with VS2005 (Check Common7\tools).
I don't see any Spy*.exe files in my \Common7\* folders; I have VS 2005
Pro; is there another location?
"Liz" <li*@tiredofspam.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>
>>>Events are nothing more than Windows Messages posted to the Message Queue of the owning thread of a Window. If you want to view the messages posted to a specific application/thread/window, you can use is Spyxx.exe included with VS2005 (Check Common7\tools).
I don't see any Spy*.exe files in my \Common7\* folders; I have VS 2005
Pro; is there another location?
Spyxx.exe should be in Common7\tools if you did install the tools during
VS2005 set-up.
Willy.
"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...
On Nov 1, 4:21 pm, "Willy Denoyette [MVP]"
<willy.denoye...@telenet.bewrote:
>True, I have no idea what he meant with Q #3 , Q #1 needs some clarification, but #2 makes me think he's after the "Windows" Events.
Possibly - or possibly the events that he might be able to subscribe
to, only some of which will relate to Windows events. It's unfortunate
that "event" is a fairly overloaded word :(
Jon
Overloaded is the least I can say, it's sometimes really confusing and
utterly wrong to use "Event", IMO we'll have to wait for the OP to come to
rescue and help us out of this ;-)
Willy.
"Martijn Mulder" <i@mwrote in message
news:47***********************@news.wanadoo.nl...
>A general question and a specific one.
1. Is there a Spy utility that shows events for a .NET application
Perhaps you could put a tracepoint on Component.Events getter. This should
work for most if not all Control events. You'd need to print out the name
of the caller method though, I'm not sure if there's a tracepoint syntax for
that. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Sasha |
last post by:
Hi everyone,
Here is my problem:
I have the following classes:
- DataNode - this class is designed to hold some data and will be contained
in a tree like data structure DataTree. When...
|
by: Saso Zagoranski |
last post by:
Hi!
How can I unregister all the events registered to a control?
I have seen a piece of code in another thread, which gets all the registered
handlers for a specific event.
Let's say I have a...
|
by: JPRoot |
last post by:
Hi
I use the following syntax to have events inherited from base to child classes which works nicely (virtual and override keyword on events). But I am wondering if it is a "supported" way of using...
|
by: Bob Rundle |
last post by:
I have the following code, which appears to be working. However it doesn't
look right. The part I am wondering about is the logic in
DisconnectEvents(). This logic creates a new delegate and...
|
by: LP |
last post by:
Hello!
I am still transitioning from VB.NET to C#. I undertand the basic concepts
of Delegates, more so of Events and somewhat understand AsyncCallback
methods. But I need some clarification on...
|
by: Nicky Smith |
last post by:
Hello,
I'm studying a book on VB.net Win apps, and I'm reading a section on
events and delegates and raising events.
Is it just me, or is this not just subs dressed up as something else?
I...
|
by: Burkhard |
last post by:
Hi,
I am new to C# (with long year experience in C++) and I am a bit confused by
the language construct of events. What is it I can do with events that I
cannot do with delegates? At the moment...
|
by: Richard Maher |
last post by:
Hi,
Here I mean "User" in the Programmer or Javascript sense. I merely wish to
programmatically trigger an Event. It would be absolutely fantastic if there
was a (Form level?) ONUSEREVENT() and...
|
by: xoozlez |
last post by:
Hi there,
I have a registration form where I like to filter out the past events of 2007. This is the code I am using :
strSQL = "SELECT EventID, EventName, EventDateBegin, EventDateEnd,...
|
by: swethak |
last post by:
Hi,
I am desiging the calendar application for that purpose i used the below code. But it is for only displys calendar. And also i want to add the events to calendar. In that code displys the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |