Remove Task bar Windows

M

Manoj Nair

Hi,
In my windows form application I want the form to appear maximized while
running Even hide the task bar.Normal form size maximized displays the task
bar.
Later after the form closes the task bar should come back
need some help on this

thanks in advance
Manoj
 
M

Manoj Nair

Hi,

Did some reserch on my own and go this

...................A rough class which hides the task bar.................

using System.Runtime.InteropServices;

[DllImport("user32")]

static extern bool ShowWindow(IntPtr hwnd, int nCmdShow);


[DllImport("user32")]

static extern IntPtr FindWindow(string lpclassName, string lpWindowName);

[DllImport("user32")]

static extern IntPtr FindWindowEx(IntPtr hwnd1,IntPtr hwnd2,string
lpsz1,string lpsz2);



public void TaskBarAction(int show)

{

IntPtr lngHandle = FindWindow("Shell_TrayWnd","");

switch(show)

{

case 0:

ShowWindow(lngHandle,5);

break;

case 1:

ShowWindow(lngHandle,0);

break;

}

}

regards

Manoj

......
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top