开发者

Set Z-Index of Window comparatively to other windows

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜