2

I'm trying to make my Windows Forms stay on top of all programs on my computer.

For example, if I click into a Google Chrome window, I still want the form to be prioritized above it. Is this possible to do?

Logan
  • 1,172
  • 9
  • 23
  • As far as I know it can only be set as `TopMost` for other forms which I think only covers other winforms. – P. Pat Mar 28 '17 at 03:28

2 Answers2

3

Have you tried setting the Form.TopMost?

You can just add this to your form:

this.TopMost = true;

Another thing is that you can always put it on top (forcibly) is to make it a dialogbox:

this.ShowDialog();

Hope it helps!

mindOfAi
  • 4,412
  • 2
  • 16
  • 27
1

Yes there is one property on Form TopMost you can set true / false.

True - it will be on top False (by default) - thats why doesn't stat on top by default

enter image description here

of course you can set from code also as @mindOfAi suggested.

Deepak Sharma
  • 4,124
  • 1
  • 14
  • 31