window: Always in front / always on top

  • Thread starter Thread starter Jeroen Pot
  • Start date Start date
J

Jeroen Pot

Hello,

i'm building an application and i want my window to always be on top.
The perfect example off this is the windows task manager.

I've translated dutch back into english, so i don't know if it's the exact
translation:
In the menu options the first menu option is "Always in front".

Does anyone know the code for that in c#.NET?
(the window should NOT get the focus though)

Thanks in advance.

Jeroen Pot
 
Hi Jeroen,

Set Form's TopMost property to true. There is no more top-most than that in
windows. Your form will be on the top of all normal windows, however it will
compete with the other top-most windows (as task manager) and the active one
will be on the top.
 
* "Jeroen Pot said:
i'm building an application and i want my window to always be on top.
The perfect example off this is the windows task manager.

Set the form's 'TopMost' property to 'True'.
 
Back
Top