现在的位置: 首页 > 综合 > 正文

WebBrowser “object reference not set to an instance of an object

2013年10月11日 ⁄ 综合 ⁄ 共 301字 ⁄ 字号 评论关闭

to work out this problem,

First,right clicking on the toolbox and selecting and select add/remove items, in the selecting dialog, click the com tab and add Microsoft Web Browser Control,

Second,remark out the ling:

Friend with Events WB As AxSHDocVw.AxWebBrowser

Then rename AxWebBrowser1 to WB

Third,set the control Dock.Fill

hope this helps everyone.

 

抱歉!评论已关闭.