从Windows应用程序打开网页 [英] Open webpage from windows application

查看:133
本文介绍了从Windows应用程序打开网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨frnds,



我有一个包含Windows项目和网站的项目。我想在加载Windows窗体时重定向到这个网站的网页。



有没有办法做到这一点?

Hi frnds,

I have a project that contains a windows project and a website. I want to redirect to the webpage of this website when loading the windows form.

Is there any way to do this?

推荐答案

在您加载表单时执行此操作。



Execute this when you are loading your form.

Process.Start(Your url here);





流程类在System.Diagnostics命名空间中



Process class is in System.Diagnostics namespace


您好,

检查这个

Hi ,
Check this
Process printjob = new Process();
            printjob.StartInfo.FileName = "www.google.com";
            printjob.StartInfo.UseShellExecute = true;
            printjob.StartInfo.Verb = "open";
            printjob.StartInfo.CreateNoWindow = true;
            printjob.Start();



最好的问候

M.Mitwalli


Best Regards
M.Mitwalli


这篇关于从Windows应用程序打开网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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