Task Bar
-
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
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 -
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
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.
-
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
Another way is to set
Form.Bounds
toSystemInformation
. Also setForm.FormBorderStyle
toFormBorderStyle.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 theForm
class) encapsulates native APIs for Windows Management and Common Controls.Microsoft MVP, Visual C# My Articles