将窗口移到最前面... [英] Get window to the front...

查看:106
本文介绍了将窗口移到最前面...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将应用程序最小化到系统托盘然后尝试激活时,它没有出现在前面.

When I minimize my application to the system tray and then when I try to activate, it doesn''t come to the front.

推荐答案

使用


Solution1确实可以将表单置于最前面,但是如果您打算这样做的话,它也可以将其保持在所有其他窗口(类似于对话框)的前面会很好的工作.但是,如果这不是您想要的,请尝试使用Me.BringToFront().
Solution1 will indeed bring your form to the front but it will also keep it there in front of all other windows (sort of like a dialog box) if this is what you intend that that will work fine. However if this is not what you intend try Me.BringToFront() instead.


这篇关于将窗口移到最前面...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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