hide windows taskbar in c#

Hide windows taskbar  C# Program

 public static extern int FindWindow(string lpClassName, string lpWindowName);
[DllImport("User32.dll")]

public static extern Int32 SendMessage(

int hWnd, // handle to destination window

int Msg, // message

int wParam, // first message parameter

int lParam); // second message parameter

private void Form1_Load(object sender, EventArgs e)

{

Process p = new Process();

p.StartInfo.WorkingDirectory = Environment.GetFolderPath(Environment.SpecialFolder.System);

p.StartInfo.FileName = "taskmgr.exe";

p.StartInfo.CreateNoWindow = true;

p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;

p.Start();

}

private void Form1_FormClosing(object sender, FormClosingEventArgs e)

{

const int WM_CLOSE = 0x0010;

int taskManager = FindWindow("#32770", "Windows Task Manager");

SendMessage(taskManager, WM_CLOSE, 0, 0);

}