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. Hide the TaskBar Using C#

Hide the TaskBar Using C#

Scheduled Pinned Locked Moved C#
questioncsharp
4 Posts 3 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.
  • E Offline
    E Offline
    eng mohamed
    wrote on last edited by
    #1

    I Want My program to hide the TaskBar automatically when it run ? how can I do that ? and what is the class that controls the main components of the window like (taskbar my computer controlepanel)? misho

    L J 2 Replies Last reply
    0
    • E eng mohamed

      I Want My program to hide the TaskBar automatically when it run ? how can I do that ? and what is the class that controls the main components of the window like (taskbar my computer controlepanel)? misho

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      Someone asked this during the last week. I thought it was you as the question was almost the same, but I cant remember :) xacc-ide 0.0.15 now with C#, MSIL, C, XML, ASP.NET, Nemerle, MyXaml and HLSL coloring - Screenshots

      E 1 Reply Last reply
      0
      • L leppie

        Someone asked this during the last week. I thought it was you as the question was almost the same, but I cant remember :) xacc-ide 0.0.15 now with C#, MSIL, C, XML, ASP.NET, Nemerle, MyXaml and HLSL coloring - Screenshots

        E Offline
        E Offline
        eng mohamed
        wrote on last edited by
        #3

        you are not a polit one misho

        1 Reply Last reply
        0
        • E eng mohamed

          I Want My program to hide the TaskBar automatically when it run ? how can I do that ? and what is the class that controls the main components of the window like (taskbar my computer controlepanel)? misho

          J Offline
          J Offline
          jklucker
          wrote on last edited by
          #4

          First you will need to reference two Win32 API's: [DllImport("user32.dll")] private static extern int FindWindow( string className, string windowText ); [DllImport("user32.dll")] private static extern int ShowWindow( int hwnd, int command ); There are then two constants you need to pass in the command paramter of the ShowWindow API. private const uint SWP_SHOWWINDOW = 0x40; private const uint SWP_HIDEWINDOW = 0x80; Finally, you would then specify the appropriate const value for the ShowWindow command paramter. The Shell_TrayWnd name was found using Spy++. int hWnd = FindWindow("Shell_TrayWnd", ""); ShowWindow(hWnd, SWP_ShowWindow | SWP_HideWindow); I reject to reality and subsitute my own! - Adam Savage, Mythbuster life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.

          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