Hide the TaskBar Using C#
-
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
-
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
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
-
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
you are not a polit one misho
-
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
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.