间谍.NET事件 [英] Spy On .NET Events

查看:109
本文介绍了间谍.NET事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一般性问题和具体问题。


1.是否有Spy实用程序显示.NET应用程序的事件

2.什么事件在调用Form.Show()时会被触发。


解决方案

11月1日上午8:39,Martijn Mulder < i @ mwrote:


一般性问题和具体问题。


1.是否有Spy实用程序显示.NET应用程序的事件

2.调用Form.Show()时会触发什么事件




我有一个类似的要求,但没有找到一个好的解决方案。我已经向MSDN的Dino Dino Dino Esposito提交了请求。如果我回来了

,我会在这里发布。


Colby


< blockquote>如果有一个间谍实用程序,它将不得不挂钩到CLR本身

(并且在这个过程中可能会降低你的应用程序,因为它会使用

调试挂钩,最有可能)找到触发事件的时间。 AFAIK,那里

不是这样的东西。


可能有一些解决方案需要你把代码放在

事件发射网站,但我怀疑这是你正在寻找的。


在表单上调用Show方法时,如果
将触发显示事件
这是第一次显示表单。如果表单也被隐藏,则VisibleChanged事件可以被触发
。我相信Activate事件也可以被解雇



-

- Nicholas Paldino [.NET / C#MVP] < br $> b $ b - mv*@spam.guard.caspershouse.com


Colby Africa < co ********** @ gmail.comwrote in message

news:11 ******************** **@o80g2000hse.googlegr oups.com ...


11月1日上午8:39,Martijn Mulder< i @ mwrote:
< blockquote class =post_quotes>
>一般性问题和具体问题。

1。是否有Spy实用程序显示.NET应用程序的事件
2。调用Form.Show()
时会触发什么事件?



我有一个类似的要求,但没有找到一个好的解决方案。我已经向MSDN的Dino Dino Dino Esposito提交了请求。如果我回来了

,我会在这里发布。


Colby


< br>

" Martijn Mulder" < i @ mwrote in message

news:47 *********************** @ news.wanadoo.nl ...


>一般性问题和具体问题。


1.是否有间谍实用程序显示事件.NET应用程序

2.调用Form.Show()时会触发什么事件




事件只不过是发布到窗口的拥有线程的
的消息队列中的Windows消息。如果你想查看发布到

特定应用程序/线程/窗口的消息,你可以使用包括在内的Spyxx.exe

VS2005(检查Common7 \工具) 。


威利。


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()
?

解决方案

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.


这篇关于间谍.NET事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆