473,325 Members | 2,308 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

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

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
2 6634
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Hautzendorfer | last post by:
Hello, I'm currently working on some printing stuff: I have to print out several .xml files using a stylesheet. Therefor I choose the Internetexplorer PlugIn via SHDocVW. My problem: After...
0
by: Sharon | last post by:
Hi all. I'm using the WebBrowser class and sometimes i get this exception: System.Windows.Forms.IWebBrowser2.Navigate2(Object& URL, Object& flags, Object& targetFrameName, Object& postData,...
7
by: Mark | last post by:
I am trying to take a working VB.NET program (the SHOW HTML program from the Halvorson book) and pass in parameter values which are used to build the URL that IE looks up. The original program...
1
by: L. Chernov | last post by:
Hello, I am trying to work with .Net 2005 WebBrowser object, and put it on a "Windows control library" (embedded in a user control class) and then I am executing it from an ASP.Net webform(with...
11
by: Anil Gupte | last post by:
....and how do I insert one into my form? I used in VB 6.0 last, but cannot figure out where it is in .Net Thanx, -- Anil Gupte www.keeninc.net www.icinema.com
4
by: Steve Richter | last post by:
I would like to build an HTML stream as a string and have the WebBrowser control render that HTML. Then on PostBack, or whatever it is called, I would like my code to be the one that receives what...
2
by: Jeroen | last post by:
We are experiencing a tuff-to-debug problem ever since we introduced a WebBrowser control into our failry large application. I'm not sure if the problem description below contains enough details,...
3
by: David | last post by:
I would like to use a AxSHDocVw.WebBroswer control in a Windows service- is this possible without creating a form? I added the reference I usually use to add this object in a Windows Application...
3
by: Peter Oliphant | last post by:
It's not necessary, but it would be nice if there was a way I could easily create something like a 'web browser form' or a 'display web page form' as forms in my application (in a Panel would be...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.