By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,050 Members | 1,564 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,050 IT Pros & Developers. It's quick & easy.

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

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

thanks,
Qiang

Sep 21 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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]
- mv*@spam.guard.caspershouse.com

"Qiang" <qw*****@gmail.comwrote in message
news:11*********************@k70g2000cwa.googlegro ups.com...
Hi,
Anybody knows how to convert an instance of SHDocVw.WebBrowser to
System.Windows.Forms.WebBrowser? Or is it possible?

thanks,
Qiang

Sep 22 '06 #2

P: n/a
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
Nicholas Paldino [.NET/C# MVP] wrote:
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]
- mv*@spam.guard.caspershouse.com

"Qiang" <qw*****@gmail.comwrote in message
news:11*********************@k70g2000cwa.googlegro ups.com...
Hi,
Anybody knows how to convert an instance of SHDocVw.WebBrowser to
System.Windows.Forms.WebBrowser? Or is it possible?

thanks,
Qiang
Sep 22 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.