可以全屏启动程序的应用程序吗? [英] Application that can start program in fullscreen?
本文介绍了可以全屏启动程序的应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我需要制作一个在全屏模式下启动新程序(例如记事本)的应用程序,而看不到任务栏.我可以在C#中做到吗?
我会很感激代码示例.谢谢:)
解决方案
我不确定我们是否可以通过隐藏任务栏的方式最大化另一个应用程序,但是您可以使用给定代码以完整模式打开您的应用程序(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应用程序真正全屏显示(并隐藏任务栏) [ ^ ]
以全屏模式显示表单 [ 解决方案
I am not sure that we can maximized another application in such a way to hide Taskbar but you can use given code to open your application(Notepad.exe
) in full mode
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();
On Page_Load use this:
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))); }
Here i have given the example for another screen. Based on that you develop for your Notepad.
Here you go man
How To Make a Windows Form App Truly Full Screen (and Hide Taskbar) in C#[^]
Form in fullscreen mode[^]
这篇关于可以全屏启动程序的应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文