如果在InitializeComponent()里加入
this.ShowInTaskbar = false;
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 启动软件的时候是全屏模式的,没有任务栏,找了设置全屏模式的相关文章,都是有任务栏的方法是软件运行了以后执行this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 会有任务栏的,该如何是好啊????>.........#($Y)@#(*
this.ShowInTaskbar = false;
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 启动软件的时候是全屏模式的,没有任务栏,找了设置全屏模式的相关文章,都是有任务栏的方法是软件运行了以后执行this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 会有任务栏的,该如何是好啊????>.........#($Y)@#(*
public static extern IntPtr FindWindowEx(IntPtr ph, IntPtr ch, String cn, String wn); [DllImport("User32.dll")]
public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow ); public static void 隐藏系统任务栏(int t)
{
/*
* t=0 隐藏系统任务栏
* t=1 显示系统任务栏
*/
IntPtr handle = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Shell_TrayWnd", null);
ShowWindow(handle, t);
} 隐藏也没有用,或者根据分辨率设置窗体的固定大小为桌大小也没有用.