开发者

Set Z-Index of Window comparatively to other windows

开发者 https://www.devze.com 2023-03-19 14:39 出处:网络
How can I, in VB.NET, set a window\'s z-index comparatively to other windows? My program runs in the background of other programs开发者_C百科, and when a specific event happens, my custom class pops

How can I, in VB.NET, set a window's z-index comparatively to other windows?

My program runs in the background of other programs开发者_C百科, and when a specific event happens, my custom class pops up. However, sometimes, this window is in the background of other apps. How can I make it such that my window always comes to the front? I realize that there are questions like mine, but I cannot find any in Visual Basic.

I would really appreciate code in VB.NET, not C#.

Thanks,

Odinulf


Set the TopMost property to True.

0

精彩评论

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