开发者

How to get my VB.net form to focus above existing users windows and applications?

I have a Visual Basic .Net form (launches after the splash screen tests database connectivity) and it is not focusing above other existing windows on launch.

How do I get it to focus above all existing windows and Windows Exp开发者_如何学JAVAlorer windows?


Form.Topmost = true;

See the corresponding MSDN.

A topmost form is a form that overlaps all the other (non-topmost) forms even if it is not the active or foreground form. Topmost forms are always displayed at the highest point in the z-order of the windows on the desktop. You can use this property to create a form that is always displayed in your application, such as a Find and Replace tool window.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜