If I understand your question correct, you would like to show/hide the
StartButton. And yes, you will need native code. I'm using the
following:
//------ Hide/Show Taskbar and Taskmanager
private const int SW_HIDE = 0x00;
private const int SW_SHOW = 0x0001;
[DllImport("coredll.dll", CharSet = CharSet.Auto)]
private static extern IntPtr FindWindow(string lpClassName,
string lpWindowName);
[DllImport("coredll.dll", CharSet = CharSet.Auto)]
private static extern bool ShowWindow(IntPtr hwnd, int
nCmdShow);
[DllImport("coredll.dll", CharSet = CharSet.Auto)]
private static extern bool EnableWindow(IntPtr hwnd, bool
enabled);
private static void ShowTaskbar()
{
IntPtr h = FindWindow("HHTaskBar", "");
ShowWindow(h, SW_SHOW);
EnableWindow(h, true);
}
private static void HideTaskbar()
{
IntPtr h = FindWindow("HHTaskBar", "");
ShowWindow(h, SW_HIDE);
EnableWindow(h, false);
}
Attention: Don't forget to Show the taskbar before closing your
application!