window: Always in front / always on top

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
 
S

Stoitcho Goutsev \(100\) [C# MVP]

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.
 
H

Herfried K. Wagner [MVP]

* "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'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top