How can I make a form appear on top of everything on the desktop, not just forms within my application. I have spent ages Googling but only found snippets for C++ and older versions of Visual Studio which no longer work. I know the answer is out there, I must be looking for the wrong thing.
Just to be clear - my project is created within Visual Studio 2012 and it is coded in Visual Basic.
Thanks in advance.
As Steve said, this work as long as your app is the only one using it:
Me.TopMost = True
Its a property found in forms. If you are executing this outside a form, use the name of the form, for example Form1.TopMost = True
.
MSDN documentation and some info you may find interesting about trying to make a window to be in top of "Top-Most" Windows.
Setting TopMost to True makes it obsure other windows permanently. I found if you make it True then False, you'll bring the Form to the top so it is visible, yet other Forms can go over if they are selected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With