Support Forums
[Help] How to keep form on top of all other forms? - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19)
+---- Thread: [Help] How to keep form on top of all other forms? (/showthread.php?tid=12396)



[Help] How to keep form on top of all other forms? - Resistance - 10-02-2010

whats the code for keeping your windows form above all other forms, including webbrowsers, software etc...


RE: [Help] How to keep form on top of all other forms? - AceInfinity - 10-02-2010

Put this inside of form_load as a code:
Code:
Me.TopMost = True

I'd recommend putting that as an if statement for a checkbox so that users have the option of keeping it on top or not. It can be annoying if you don't want that option.


RE: [Help] How to keep form on top of all other forms? - Resistance - 10-02-2010

(10-02-2010, 10:50 PM)Infinity Wrote: Put this inside of form_load as a code:
Code:
Me.TopMost = True

I'd recommend putting that as an if statement for a checkbox so that users have the option of keeping it on top or not. It can be annoying if you don't want that option.

Oh thanks so much... I have a few other questions to post now... Big Grin lol thanks again1!!!


RE: [Help] How to keep form on top of all other forms? - AceInfinity - 10-02-2010

(10-02-2010, 10:53 PM)L3g1tWa5te Wrote: Oh thanks so much... I have a few other questions to post now... Big Grin lol thanks again1!!!

No problem Smile if they are related to this you can just post them in here lol. But adding that option as an optional choice, is a good idea, unless you are just playing around with the code for personal education.

I know even after I set programs to stay on top, sometimes I don't want that option and it gets annoying pretty quick, having to move the window around to view the parts of your screen that you want to see.


RE: [Help] How to keep form on top of all other forms? - Resistance - 10-02-2010

very true, and well agreed on!!!