申请/表格重新获得关注时提出的事件...... [英] Event raised when Application/Form regains focus...

查看:68
本文介绍了申请/表格重新获得关注时提出的事件......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!


所以我正在开发一个应用程序,几乎只需要一个

表格。


当应用程序完成任务时,我希望它使用

FlashWindow()来通知用户它已完成。我有这个

部分工作;然而,我似乎无法找到合适的事件来使用

停止闪烁。


我曾尝试过表格中的GotFocus和Enter事件,但是那些

似乎没办法。


有人有什么想法吗?


谢谢!!! br />

Hello!

So im working on an applicaiton that all pretty much sits on a single
form.

When the application completes a task, I''d like it to use
FlashWindow() to notify the user that it has completed. I have this
part working; however, I cant seem to find the right event to use to
Stop the flashing.

Ive tried the GotFocus and the Enter events on the form, but those
dont seem to do the trick.

Anybody have any ideas?

Thanks!!!

推荐答案

它们不起作用,因为你的表格已经有焦点吗?如果那是

的情况,那么可能有一个条件,如果

窗口已经有焦点,你不会闪烁窗口。

-

- Nicholas Paldino [.NET / C#MVP]

- mv *@spam.guard.caspershouse.com


" Bodyboarder20" < Sh ********** @ gmail.comwrote in message

news:11 ******************** *@19g2000hsx.googlegrou ps.com ...
Do they not work because your form already has focus? If that is the
case, then maybe have a condition where you don''t flash the window if the
window already has focus.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bodyboarder20" <Sh**********@gmail.comwrote in message
news:11*********************@19g2000hsx.googlegrou ps.com...

你好!


所以我正在申请一个非常漂亮的应用程序很多只需要一个

表格。


当应用程序完成任务时,我希望它能够使用

FlashWindow()通知用户它已完成。我有这个

部分工作;然而,我似乎无法找到合适的事件来使用

停止闪烁。


我曾尝试过表格中的GotFocus和Enter事件,但是那些

似乎没办法。


有人有什么想法吗?


谢谢!!! br />
Hello!

So im working on an applicaiton that all pretty much sits on a single
form.

When the application completes a task, I''d like it to use
FlashWindow() to notify the user that it has completed. I have this
part working; however, I cant seem to find the right event to use to
Stop the flashing.

Ive tried the GotFocus and the Enter events on the form, but those
dont seem to do the trick.

Anybody have any ideas?

Thanks!!!





例如,如果表格是最小化的话。或者,如果还有另一个

应用程序。当我将

整个应用程序重新置于焦点时会引发什么事件?



Well for instance if the form is "minimized". Or if there is another
application on top of it. What event is raised when I bring the
entire application back into focus?


您可能想查看Activated事件还有。

-

- Nicholas Paldino [.NET / C#MVP]

- mv*@spam.guard.caspershouse.com


" Bodyboarder20" < Sh ********** @ gmail.comwrote in message

news:11 ******************** **@g4g2000hsf.googlegro ups.com ...
You might want to look into the Activated event as well.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bodyboarder20" <Sh**********@gmail.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...

>


好​​吧,例如,如果表格是 ;最小化" ;.或者,如果还有另一个

应用程序。当我将

整个应用程序重新置于焦点时会引发什么事件?
>

Well for instance if the form is "minimized". Or if there is another
application on top of it. What event is raised when I bring the
entire application back into focus?


这篇关于申请/表格重新获得关注时提出的事件......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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