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,875
  • 1
  • 19
  • 32
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
  • 12,622
  • 16
  • 73
  • 101
1

Take a look at this

 this.TopMost = true;
Jason Evans
  • 28,906
  • 14
  • 90
  • 154
Ruchira Gayan Ranaweera
  • 34,993
  • 17
  • 75
  • 115