Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Task Bar

Task Bar

Scheduled Pinned Locked Moved C#
question
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SherKar
    wrote on last edited by
    #1

    hi i want to hide the task bar from my app ?? and i want to maximze certain weindow i have its handle if anyone knows plz tell me thanx

    J S H 3 Replies Last reply
    0
    • S SherKar

      hi i want to hide the task bar from my app ?? and i want to maximze certain weindow i have its handle if anyone knows plz tell me thanx

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      Use the SendMessage Win32 API to maximize another window. I'm not sure what you mean by hide the taskbar from the app ... if you mean don't show your app in the taskbar, you can use myForm.ShowInTaskbar = false;. If you mean make the taskbar invisible, you'll probably have to P/Invoke the Win32 API once again. --------------------------- He who knows that enough is enough will always have enough. -Lao Tsu

      1 Reply Last reply
      0
      • S SherKar

        hi i want to hide the task bar from my app ?? and i want to maximze certain weindow i have its handle if anyone knows plz tell me thanx

        S Offline
        S Offline
        Stefan Troschuetz
        wrote on last edited by
        #3

        I think the following fits much better than SendMessage. The code shows declaration and usage. [System.Runtime.InteropServices.DllImport("user32.dll")] public static extern bool ShowWindow(int wndHandle, int nCmdShow); ShowWindow(wndHandle, 3); To set other window states than maximized read the help of the ShowWindow method in the Platform-SDK. The define-values which are mentioned there, can be found in Winuser.h.

        1 Reply Last reply
        0
        • S SherKar

          hi i want to hide the task bar from my app ?? and i want to maximze certain weindow i have its handle if anyone knows plz tell me thanx

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          Another way is to set Form.Bounds to SystemInformation. Also set Form.FormBorderStyle to FormBorderStyle.None. This will draw your window over top of the task bar. Note that this requires no P/Invoked calls directly, while the underlying effect is the same as other full-screen applications (including screen savers) that you see, since pretty much all the controls (including the Form class) encapsulates native APIs for Windows Management and Common Controls.

          Microsoft MVP, Visual C# My Articles

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups