在VB .net中使用Web浏览器控件 [英] Using Web Browser Control in VB .net

查看:79
本文介绍了在VB .net中使用Web浏览器控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是dotnet的新手,我在VB .net中使用浏览器

控件时遇到了问题。虽然我能够使用它的基本功能,

我需要自定义它。

http://www.codeproject.com/books/0764549146_8.asp

上面的链接显示了我想要的位置是在C#中实现的,但是我需要在VB .net中获得相同的价值。


非常感谢有人的帮助和指导。


问候

GOkul

解决方案

Gokul


您引用的网页返回时出现错误。你能查一下它的价值吗?重新发帖。另外,你能更具体地说明你遇到的问题吗?


Charles

" gokul" <去******** @ yahoo.com>在消息中写道

新闻:c1 ************************* @ posting.google.co m ... < blockquote class =post_quotes>
我是dotnet的新手,我在使用VB .net中的浏览器控件时遇到了问题。虽然我能够使用它的基本功能,但我需要自定义它。

http://www.codeproject.com/books/0764549146_8.asp
以上链接显示了我想要的在C#中获得的位置,但我需要在VB .net中也是如此。

非常感谢有人给予帮助和指导。

GOKul



嗨Charles Law,

我是dotnet的新手,我在使用浏览器时遇到问题

控件在VB中.net。

虽然我可以使用它的基本功能,

我需要自定义它。

http://www.codeproject.com/books/0764549146_8.asp


以上链接完美无缺......对我来说很好...请尝试复制和

粘贴链接浏览器。

检查HTML自定义部分....

清单8-36 :: MyCustomWebBrowser的MainForm完整代码


这是我在VB.Net中需要的代码。

问候

Gokul


***发送来自开发人员指南 http://www.developersdex.com ***

不要只是参加USENET ......获得奖励!


嗨Gokul


我能看到您指的代码。那里有很多,很多

可以直接用WebBrowser控件实现,没有任何特殊的

努力。


你说你可以将它与基本功能一起使用,所以我不确定哪些是b
导致你出现问题。而不是通过列表搜索,你可以确定你遇到的一些具体问题吗?例如,打印

打印你将使用


AxWebBrowser1.ExecWB(OLECMDID_PRINT,OLECMDEXECOPT_PROMPTUSER)


或者,你试图用

IDocHostUIHandler界面显示自定义上下文菜单,还是其他什么?


问候


Charles

" Gokul RajaD" < GR *** @ rediffmail.com>在消息中写道

新闻:OA ************* @tk2msftngp13.phx.gbl ...

嗨Charles Law,虽然我能够使用它的基本功能,但我需要自定义它。

http://www.codeproject.com/ books / 0764549146_8.asp

以上链接完美无缺......对我来说很好......请尝试复制并在浏览器中粘贴链接。
检查HTML自定义部分....
清单8-36 :: MyCustomWebBrowser的MainForm完整代码

这是我在VB.Net中需要的代码。
问候
Gokul

***通过开发人员指南 http:/ /www.developersdex.com ***
不要只是参加USENET ......获得奖励!



Hi,
Iam a newbie to dotnet and I experience problems in using the Browser
control in VB .net. Though Iam able to use it with its basic features,
I need to customise it.

http://www.codeproject.com/books/0764549146_8.asp
The above link shows where what I want is achived in C#, but I need t
oa cjhive the same in VB .net.

Someone help and guidance would be much appreciated.

Regards
GOkul

解决方案

Gokul

The web page you referenced comes back with an error for me. Can you check
it and re-post. Also, can you be more specific about the kind of problems
you are having?

Charles
"gokul" <go********@yahoo.com> wrote in message
news:c1*************************@posting.google.co m...

Hi,
Iam a newbie to dotnet and I experience problems in using the Browser
control in VB .net. Though Iam able to use it with its basic features,
I need to customise it.

http://www.codeproject.com/books/0764549146_8.asp
The above link shows where what I want is achived in C#, but I need t
oa cjhive the same in VB .net.

Someone help and guidance would be much appreciated.

Regards
GOkul



Hi Charles Law,
Iam a newbie to dotnet and I experience problems in using the Browser
control in VB .net.
Though Iam able to use it with its basic features,
I need to customise it.

http://www.codeproject.com/books/0764549146_8.asp

The above links works perfectly....fine for me...please try copying and
pasting the link in the browser.
check the HTML customisation part....
Listing 8-36:: The Complete Code for MainForm of MyCustomWebBrowser

This is the code which I need in VB.Net.
Regards
Gokul

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!


Hi Gokul

I can see the code you are referring to. There is a lot there, and much of
it can be achieved with the WebBrowser control directly, without any special
effort.

You say you are able to use it with basic features, so I am not sure which
ones are causing you problems. Rather than trawl through the listing, can
you identify some of the specific problems you are having? For example, to
print you would use

AxWebBrowser1.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER)

Alternatively, are you trying to show a custom context menu with the
IDocHostUIHandler interface, or is it something else?

Regards

Charles
"Gokul RajaD" <gr***@rediffmail.com> wrote in message
news:OA*************@tk2msftngp13.phx.gbl...

Hi Charles Law,
Iam a newbie to dotnet and I experience problems in using the Browser
control in VB .net.
Though Iam able to use it with its basic features,
I need to customise it.

http://www.codeproject.com/books/0764549146_8.asp

The above links works perfectly....fine for me...please try copying and
pasting the link in the browser.
check the HTML customisation part....
Listing 8-36:: The Complete Code for MainForm of MyCustomWebBrowser

This is the code which I need in VB.Net.
Regards
Gokul

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!



这篇关于在VB .net中使用Web浏览器控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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