打开浏览 [英] Open Browse

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

问题描述




有谁能告诉我是否可以在WinForm中打开WebForm?怎么样?请给我

的例子。


我有一个winform应用程序,我希望在某些项目中打开浏览器

里面。


你能帮忙吗?

-

使用VB.NET编程ASP.NET

感谢'(如果你试图帮助我)

希望这对你有帮助(如果我试着帮助你的话)

ruca

Hi,

Can anyone tell me if I can open a WebForm inside a WinForm? How? Give me
examples, please.

I have a winform application and I want that in some items opens a browser
inside.

Can you help?
--
Programming ASP.NET with VB.NET
Thank''s (if you try to help me)
Hope this help you (if I try to help you)
ruca

推荐答案

看这里:

http://lab.msdn.microsoft.com/expres...p/default.aspx
http://www.devhood.com/tutorials/tut...utorial_id=312


HTH


Konrad


" ruca" < RU *** @ iol.pt>写在留言中

新闻:%2 **************** @ tk2msftngp13.phx.gbl ...
look here :

http://lab.msdn.microsoft.com/expres...p/default.aspx
http://www.devhood.com/tutorials/tut...utorial_id=312

HTH

Konrad

"ruca" <ru***@iol.pt> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...


任何人都可以告诉我是否可以在WinForm中打开WebForm?怎么样?请给我
示例。

我有一个winform应用程序,我希望在某些项目中打开浏览器
里面。

你能帮忙吗? ?

-
使用VB.NET编程ASP.NET
感谢'(如果你试图帮助我)
希望这对你有所帮助(如果我试着帮助你)
ruca
Hi,

Can anyone tell me if I can open a WebForm inside a WinForm? How? Give me
examples, please.

I have a winform application and I want that in some items opens a browser
inside.

Can you help?
--
Programming ASP.NET with VB.NET
Thank''s (if you try to help me)
Hope this help you (if I try to help you)
ruca



Ruca,


一个小例子,
打开一个新的Windows应用程序项目

在工具箱中右键单击并选择添加/删除项目

在自定义工具箱中选择Com和那个Microsoft Webbrowser


当它在工具箱中时将它拖到你的表单上

也可以在你的表单上拖一个按钮。


然后这个代码,你有一个迷你Web浏览器。

\\\

Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As

System.EventArgs)处理Button1.Click

Me.AxWebBrowser1.Navigate2(" w ww.google.com")

End Sub

//

一些链接

webbrowser
http://support.microsoft.com/?kbid=311303 <一些常见问题
http://support.microsoft.com/default...b;EN-US;311284


mshtml
< a rel =nofollowhref =http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/hosting/hosting.asp\"target =_ blank> http:// msdn。 microsoft.com/library/de...ng/hosting.asp

我希望这有点帮助吗?


Cor

Ruca,

A little example,

Open a new windows application project
In the toolbox rightclick and select add/Remove items
In the customize toolbox select Com and in that Microsoft Webbrowser

When that is in the toolbox drag it to your form
Drag also a button to your form.

Then this code and you have a mini Webbrowser.

\\\
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate2("www.google.com")
End Sub
//
Some links
webbrowser
http://support.microsoft.com/?kbid=311303

some faqs
http://support.microsoft.com/default...b;EN-US;311284

mshtml
http://msdn.microsoft.com/library/de...ng/hosting.asp

I hope this helps a little bit?

Cor


在某些页面中,我使用会话变量。我可以传递该会话的值

变量吗?怎么样?

-

使用VB.NET编程ASP.NET

感谢'(如果你试图帮助我)

希望这对你有帮助(如果我试着帮你的话)

ruca


Cor Ligthert <无********** @ planet.nl> escreveu na mensagem

news:OH **************** @ TK2MSFTNGP11.phx.gbl ...
In some pages I use Session variables. Can I pass values for that session
variables? How?
--
Programming ASP.NET with VB.NET
Thank''s (if you try to help me)
Hope this help you (if I try to help you)
ruca

"Cor Ligthert" <no**********@planet.nl> escreveu na mensagem
news:OH****************@TK2MSFTNGP11.phx.gbl...
Ruca,

一个小例子,

打开一个新的Windows应用程序项目
在工具箱中右键单击并选择添加/删除项目
在自定义工具箱中选择Com和在那个Microsoft Webbrowser

当它在工具箱中时拖到你的表单
拖动一个按钮到你的表单。

那么这段代码,你有一个迷你Web浏览器。

\\\
Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As
System.EventArgs)处理Button1.Click
Me.AxWebBrowser1.Navigate2(" www.google.com")
End Sub
//
一些链接
webbrowser
http://support.microsoft.com/?kbid=311303

一些常见问题
http://support.microsoft.com/default...b;EN-US;311284

mshtml
http:// msdn .microsoft.com / library / de ... ng / hosting.asp
我希望这有点帮助吗?

Cor
Ruca,

A little example,

Open a new windows application project
In the toolbox rightclick and select add/Remove items
In the customize toolbox select Com and in that Microsoft Webbrowser

When that is in the toolbox drag it to your form
Drag also a button to your form.

Then this code and you have a mini Webbrowser.

\\\
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.AxWebBrowser1.Navigate2("www.google.com")
End Sub
//
Some links
webbrowser
http://support.microsoft.com/?kbid=311303

some faqs
http://support.microsoft.com/default...b;EN-US;311284

mshtml
http://msdn.microsoft.com/library/de...ng/hosting.asp
I hope this helps a little bit?

Cor



这篇关于打开浏览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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