WinForm as AppBar

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
 
K

kimiraikkonen

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

Thorsten Doerfler

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
 
H

Herfried K. Wagner [MVP]

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

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

Similar Threads


Top