调用BringToFront()时生成事件 [英] Event generation when BringToFront() is called
本文介绍了调用BringToFront()时生成事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的,
我需要知道在调用方法 BringToFront()时生成了哪个事件控制?
Please i need to know which event is generated when the method BringToFront() is called on a control ?
推荐答案
可以是无对多。取决于之前的状态。
Can be none to many. Depends from its previous status.
其中一个可以是"GotFocus"
One of those can be "GotFocus"
https://msdn.microsoft.com/en-us/library/system .windows.forms.control_events(v = vs.110).aspx
但是,如果它已经在前面而且有焦点而不是任何消息都被发送。
However, if it is already in front and has focus than not any message is sent.
请注意,事件只是在事件发生后从操作系统发送的消息,因此如果没有任何反应,则不发送任何内容。
Be aware that an event is just a message which is send from the OS after an event and therefore if nothing happens nothing is send.
这篇关于调用BringToFront()时生成事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文