更新时间:2022-12-21 09:00:59
我不确定我们是否可以通过隐藏任务栏的方式最大化另一个应用程序,但是您可以使用给定代码以完整模式打开您的应用程序(Notepad.exe
)System.Diagnostics.Process obj = new System.Diagnostics.Process(); obj.StartInfo.FileName = "Notepad.exe"; obj.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Maximized; // it Maximized application obj.Start();
在Page_Load上使用此:protected void Page_Load(object sender, EventArgs e) { Page.ClientScript.RegisterStartupScript(this.GetType(), "open", "window.open(''Default.aspx'','''',''fullscreen=yes'');", true);setupPage(new DirectoryInfo(Server.MapPath(WebDocRoot))); }
在这里,我给出了另一个屏幕的示例.基于您为记事本开发的内容.
如何在C#中使Windows Form应用程序真正全屏显示(并隐藏任务栏) [ ^ ]
以全屏模式显示表单 [解决方案