如何通过Windows窗体打开Web窗体 [英] How Can I Open Web Form Through A Windows Form

查看:151
本文介绍了如何通过Windows窗体打开Web窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有太多的编码或链接表单知识,但是我想在Windows表单上有一个链接或按钮来打开我已经创建的Web表单.

我已经创建了一个程序,我需要一个Web帮助来进行分配,但是我讨厌进行Web编码,因此我使用Visual Studio,因为我只需要图片和文字.

使用Visual Studio 13
编码和.NET或VB

I don''t have that much of knowledge on coding or linking forms together however i would like to have a link or a button on my windows form that would open a web form that i have already created.

I have already created a program and i need an Web Help for my assignment however i hate doing web coding and therefore i used Visual Studio since i only need pictures and words.

Using Visual Studio 13
Coding and .NET or VB

推荐答案

如果要在Windows应用程序窗体中显示网页,可以尝试此方法
创建一个表单并在其中添加一个webbrowser 控件.
在按钮的单击上,您可以通过
将URL分配给WebBrowser 控件.
in case if you want to show the web page in your windows application Form you can try this
Create a form and add a webbrowser control in it.
On the Click of the button you can assign the URL to the WebBrowser control by
webBrowser1.Navigate("http://www.codeproject.com/");



如果要在默认浏览器(chrome,firefox,safare,IE ...)中显示页面,则可以选择 解决方案1 ​​



if you want to display the page in your default browser ( chrome,firefox,safare,IE...) you can prefer Solution 1


在下面尝试,提供您要打开的URL
try below, give the URL you want to open
System.Diagnostics.Process.Start("http://www.website.com")


这篇关于如何通过Windows窗体打开Web窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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