Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
After the splash screen appears and fades away, the main form appears but goes behind some other program's windows like Windows Explorer or Firefox. What do I have to do so that it comes and stays in the front of all other windows? Thanks for any help.

And is there a way to make a form appear on top of all other windows of all open applications? For example, if I want to remind myself every 5 minutes to do something (by showing a MessageBox) until I close that reminder program, is it possible to make the message box or a small form appear on top of all other things going on on the screen?

What I have tried:

I have just searched around for answers but the searches lead to another question. BringToFront is probably of little help when some other program's window appears in front.
Posted
Updated 16-Aug-21 4:06am

 
Share this answer
 
You'll have to use user32.dll: c# - How to make a window always stay on top in .Net? - Stack Overflow[^] See the clammum solution - it's not in VB, it's pretty obvious code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900