How to Convert SHDocVw.WebBrowser to System.Windows.Forms.WebBrowser

  • Thread starter Thread starter Qiang
  • Start date Start date
Q

Qiang

Hi,
Anybody knows how to convert an instance of SHDocVw.WebBrowser to
System.Windows.Forms.WebBrowser? Or is it possible?

thanks,
Qiang
 
Qiang,

I don't think you can do it easily. Using Reflector, I can see some
fields that I think you could probably change through reflection, but it
doesn't seem like an easy task.

Why don't you just change your program to use the WebBrowser control?
 
The reason I want to use this System.Windows.Forms.WebBrowser is that I
can add another control to WebBrowser control. But with
SHDocVw.WebBrowser, I do not know how to do this.

can I add a control inside a SHDocVw.WebBrowser instance?

Qiang

Qiang,

I don't think you can do it easily. Using Reflector, I can see some
fields that I think you could probably change through reflection, but it
doesn't seem like an easy task.

Why don't you just change your program to use the WebBrowser control?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Qiang said:
Hi,
Anybody knows how to convert an instance of SHDocVw.WebBrowser to
System.Windows.Forms.WebBrowser? Or is it possible?

thanks,
Qiang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top