如何从Windows应用程序表单中调用程序的一部分。 [英] How can I call a part of a program from a windows application form .

查看:76
本文介绍了如何从Windows应用程序表单中调用程序的一部分。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Visual Studio C#中从Windows应用程序表单调用程序的一部分。



例如,我想用按钮调用浏览器chrome设置通知。



现在我可以打开这个鳕鱼的Chrome浏览器,但我想打开特殊的论点。

Muzila Fire Fox或Explorer怎么样?



流程web =新流程();

web.StartInfo.FileName =chrome.exe;

web.StartInfo.Arguments =???????;

web.Start();

How can i call a part of a program from a windows application form in Visual Studio C# .

For example i want to call browser chrome setting with a button in form.

Now i can open the chrome browser withe this cods but i want to open special arguments.
What about Muzila Fire Fox or Explorer .

Process web = new Process();
web.StartInfo.FileName = "chrome.exe";
web.StartInfo.Arguments = "???????";
web.Start();

推荐答案

这里是Chrome参数列表 - http://peter.sh/experiments/chromium-command-line-switches/ [ ^ ]。



要打开网址,只需将网址作为参数传递,例如 chrome.exe google.com
Here is a list of Chrome parameters - http://peter.sh/experiments/chromium-command-line-switches/[^].

To open a url, simply pass the url as the argument e.g. chrome.exe google.com.


这篇关于如何从Windows应用程序表单中调用程序的一部分。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆