0

Is there a way to have my form staying on top of all other windows in C#, like in java with

setAlwaysOnTop(true);
OlivierH
  • 3,817
  • 1
  • 18
  • 30
Hayden Sim
  • 33
  • 1
  • 5

2 Answers2

2

You could use the TopMost property:

this.TopMost = true;

You can set this property in code, like above. This can be done using the designer as well:

TopMost = true

Note: Make sure to click the form once.

MSDN: MSDN TopMost

Gets or sets a value that indicates whether a window appears in the topmost z-order.

Max
  • 11,885
  • 15
  • 70
  • 96
1

Take a look at this

 this.TopMost = true;
Jason Evans
  • 28,489
  • 14
  • 89
  • 151
Ruchira Gayan Ranaweera
  • 33,712
  • 16
  • 72
  • 110