WinForm as AppBar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Uwe Gabbert

    #1

    WinForm as AppBar

    Hallo,

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

    What can I do?

    Thanks
    Uwe


  • kimiraikkonen

    #2
    Re: WinForm as AppBar

    On Feb 28, 10:01 pm, Uwe Gabbert <u...@uwegabber t.dewrote:
    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.

    Comment

    • Thorsten Doerfler

      #3
      Re: WinForm as AppBar

      Uwe Gabbert schrieb:
      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 SystemParameter sInfo + 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
      --
      Microsoft MVP Visual Basic

      vb-hellfire visual basic faq | vb-hellfire - einfach anders
      http://vb-faq.de/ | http://www.vb-hellfire.de/

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: WinForm as AppBar

        "Uwe Gabbert" <uwe@uwegabbert .deschrieb:
        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 'SHAppBarMessag e'
        function (p/invoke).

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

        Comment

        Working...