WinForm as AppBar

  • Thread starter Thread starter Uwe Gabbert
  • Start date Start date
U

Uwe Gabbert

Hallo,

I have a small WinForm. The form must always stay on Top. Such as
Taskbar or Sidebar.

What can I do?

Thanks
Uwe
 
Hallo,

I have a small WinForm. The form must always stay on Top. Such as
Taskbar or Sidebar.

What can I do?

Thanks
Uwe

Look at form's "TopMost" property.
 
Uwe said:
I have a small WinForm. The form must always stay on Top. Such as
Taskbar or Sidebar.

Set Form.TopMost = True. To limit the desktops workarea as the taskbar
does use p/invoke SystemParametersInfo + SPI_SETWORKAREA. Before you
do that your form have to be located in the area you want to lock for
other windows, must not be sized or moved after you changed the size
for the workarea.

Thorsten Doerfler
 
Uwe Gabbert said:
I have a small WinForm. The form must always stay on Top. Such as Taskbar
or Sidebar.

In addition to the other replies, take a look at the 'SHAppBarMessage'
function (p/invoke).
 
Back
Top