473,385 Members | 1,673 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,385 software developers and data experts.

What is WebBrowser control called now?

....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
Dec 13 '06 #1
11 2789
Anil Gupte wrote:
...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
After searching for all of 20 seconds on MSDN, I found that it is
called WebBrowser.

To use it, you simply drag it onto your form from the toolbox.

Dec 13 '06 #2
Hmm, sorry, but I cannnot find it. Not on the toolbox. The couple of
references in MSDN found seem to refer to VB 6.0, for example
*************************
In Visual Basic 6.0, the OLE Container control was used to add insertable
OLE objects to your forms. There is no OLE Container control in Visual Basic
..NET. If you need the functionality of the OLE Container control, in some
cases you can substitute the Visual Basic 6.0 WebBrowser ActiveX control and
use it as an OLE Container.
See Also
Things to Consider Before Upgrading | Adding ActiveX Controls to Windows
Forms

********************
There is no WebBrowser in the toolbox - I think even in VB6 I had to add a
reference before I could insert it. But in .Net I cannot find an reference
with the same or similar name. The above text also makes me wonder if I
have to somehow include a VB6 project to be able to see a WebBrowser.

Thanx,
--
Anil Gupte
www.keeninc.net
www.icinema.com

"Chris Dunaway" <du******@gmail.comwrote in message
news:11**********************@16g2000cwy.googlegro ups.com...
Anil Gupte wrote:
>...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

After searching for all of 20 seconds on MSDN, I found that it is
called WebBrowser.

To use it, you simply drag it onto your form from the toolbox.

Dec 13 '06 #3
On Wed, 13 Dec 2006 23:53:47 +0530, Anil Gupte wrote:
There is no WebBrowser in the toolbox - I think even in VB6 I had to add a
reference before I could insert it. But in .Net I cannot find an reference
with the same or similar name. The above text also makes me wonder if I
have to somehow include a VB6 project to be able to see a WebBrowser.

Thanx,
What version of VS are you using? The WebBrowser is included in Visual
Studio 2005
--
Bits.Bytes
http://bytes.thinkersroom.com
Dec 13 '06 #4
Anil Gupte wrote:
Hmm, sorry, but I cannnot find it. Not on the toolbox. The couple of
references in MSDN found seem to refer to VB 6.0, for example
I'm not sure why you aren't seeing it. When I search for WebBrowser on
MSDN, I get this item as the fourth one in the list:

WebBrowser Class (System.Windows.Forms)
Enables the user to navigate Web pages inside your form. ... Enables
the user to navigate Web pages inside your form. Namespace:
System.Windows.Forms
http://msdn2.microsoft.com/en-us/lib...ebbrowser.aspx
But Rad is right, the WebBrowser class is only available in VS2005.
There is no WebBrowser in the toolbox - I think even in VB6 I had to add a
reference before I could insert it. But in .Net I cannot find an reference
with the same or similar name. The above text also makes me wonder if I
have to somehow include a VB6 project to be able to see a WebBrowser.
If you are using VS2005 and the WebBrowser control is not on the
toolbox, right click the toolbox and select Choose Items. Then click
the .Net Components tab and scroll down to WebBrowser and select it.

If you are using VS2003, right click the toolbox and select Add/Remove
items. Then click the COM components tab and select the Microsoft Web
Browser ActiveX control as you do now with VB6.

Chris

Dec 14 '06 #5
I am using .Net 2003 Enterprise

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Rad [Visual C# MVP]" <no****@nospam.comwrote in message
news:1v****************@thinkersroom.com...
On Wed, 13 Dec 2006 23:53:47 +0530, Anil Gupte wrote:
>There is no WebBrowser in the toolbox - I think even in VB6 I had to add
a
reference before I could insert it. But in .Net I cannot find an
reference
with the same or similar name. The above text also makes me wonder if I
have to somehow include a VB6 project to be able to see a WebBrowser.

Thanx,

What version of VS are you using? The WebBrowser is included in Visual
Studio 2005
--
Bits.Bytes
http://bytes.thinkersroom.com

Dec 14 '06 #6
I am using .Net 2003. And I am sorry I thought you were referring to my
local MSDN, which is where I searched.

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Chris Dunaway" <du******@gmail.comwrote in message
news:11*********************@n67g2000cwd.googlegro ups.com...
Anil Gupte wrote:
>Hmm, sorry, but I cannnot find it. Not on the toolbox. The couple of
references in MSDN found seem to refer to VB 6.0, for example

I'm not sure why you aren't seeing it. When I search for WebBrowser on
MSDN, I get this item as the fourth one in the list:

WebBrowser Class (System.Windows.Forms)
Enables the user to navigate Web pages inside your form. ... Enables
the user to navigate Web pages inside your form. Namespace:
System.Windows.Forms
http://msdn2.microsoft.com/en-us/lib...ebbrowser.aspx
But Rad is right, the WebBrowser class is only available in VS2005.
>There is no WebBrowser in the toolbox - I think even in VB6 I had to add
a
reference before I could insert it. But in .Net I cannot find an
reference
with the same or similar name. The above text also makes me wonder if I
have to somehow include a VB6 project to be able to see a WebBrowser.

If you are using VS2005 and the WebBrowser control is not on the
toolbox, right click the toolbox and select Choose Items. Then click
the .Net Components tab and scroll down to WebBrowser and select it.

If you are using VS2003, right click the toolbox and select Add/Remove
items. Then click the COM components tab and select the Microsoft Web
Browser ActiveX control as you do now with VB6.

Chris

Dec 14 '06 #7
OK. I found it. http://support.microsoft.com/kb/821771

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Anil Gupte" <an*******@icinema.comwrote in message
news:u%****************@TK2MSFTNGP03.phx.gbl...
>I am using .Net 2003. And I am sorry I thought you were referring to my
local MSDN, which is where I searched.

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Chris Dunaway" <du******@gmail.comwrote in message
news:11*********************@n67g2000cwd.googlegro ups.com...
>Anil Gupte wrote:
>>Hmm, sorry, but I cannnot find it. Not on the toolbox. The couple of
references in MSDN found seem to refer to VB 6.0, for example

I'm not sure why you aren't seeing it. When I search for WebBrowser on
MSDN, I get this item as the fourth one in the list:

WebBrowser Class (System.Windows.Forms)
Enables the user to navigate Web pages inside your form. ... Enables
the user to navigate Web pages inside your form. Namespace:
System.Windows.Forms
http://msdn2.microsoft.com/en-us/lib...ebbrowser.aspx
But Rad is right, the WebBrowser class is only available in VS2005.
>>There is no WebBrowser in the toolbox - I think even in VB6 I had to add
a
reference before I could insert it. But in .Net I cannot find an
reference
with the same or similar name. The above text also makes me wonder if I
have to somehow include a VB6 project to be able to see a WebBrowser.

If you are using VS2005 and the WebBrowser control is not on the
toolbox, right click the toolbox and select Choose Items. Then click
the .Net Components tab and scroll down to WebBrowser and select it.

If you are using VS2003, right click the toolbox and select Add/Remove
items. Then click the COM components tab and select the Microsoft Web
Browser ActiveX control as you do now with VB6.

Chris


Dec 14 '06 #8
Anil,

Don't forget as Chriss wrote to set it in your toolbox and drag it from
there on your form.
Otherwise the RESX settings will most probably go wrong.

Cor

"Anil Gupte" <an*******@icinema.comschreef in bericht
news:ux**************@TK2MSFTNGP03.phx.gbl...
OK. I found it. http://support.microsoft.com/kb/821771

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Anil Gupte" <an*******@icinema.comwrote in message
news:u%****************@TK2MSFTNGP03.phx.gbl...
>>I am using .Net 2003. And I am sorry I thought you were referring to my
local MSDN, which is where I searched.

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Chris Dunaway" <du******@gmail.comwrote in message
news:11*********************@n67g2000cwd.googlegr oups.com...
>>Anil Gupte wrote:
Hmm, sorry, but I cannnot find it. Not on the toolbox. The couple of
references in MSDN found seem to refer to VB 6.0, for example

I'm not sure why you aren't seeing it. When I search for WebBrowser on
MSDN, I get this item as the fourth one in the list:

WebBrowser Class (System.Windows.Forms)
Enables the user to navigate Web pages inside your form. ... Enables
the user to navigate Web pages inside your form. Namespace:
System.Windows.Forms
http://msdn2.microsoft.com/en-us/lib...ebbrowser.aspx
But Rad is right, the WebBrowser class is only available in VS2005.

There is no WebBrowser in the toolbox - I think even in VB6 I had to
add a
reference before I could insert it. But in .Net I cannot find an
reference
with the same or similar name. The above text also makes me wonder if
I
have to somehow include a VB6 project to be able to see a WebBrowser.

If you are using VS2005 and the WebBrowser control is not on the
toolbox, right click the toolbox and select Choose Items. Then click
the .Net Components tab and scroll down to WebBrowser and select it.

If you are using VS2003, right click the toolbox and select Add/Remove
items. Then click the COM components tab and select the Microsoft Web
Browser ActiveX control as you do now with VB6.

Chris



Dec 14 '06 #9
Yes, thanx I did that.

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Anil,

Don't forget as Chriss wrote to set it in your toolbox and drag it from
there on your form.
Otherwise the RESX settings will most probably go wrong.

Cor

"Anil Gupte" <an*******@icinema.comschreef in bericht
news:ux**************@TK2MSFTNGP03.phx.gbl...
>OK. I found it. http://support.microsoft.com/kb/821771

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Anil Gupte" <an*******@icinema.comwrote in message
news:u%****************@TK2MSFTNGP03.phx.gbl...
>>>I am using .Net 2003. And I am sorry I thought you were referring to my
local MSDN, which is where I searched.

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Chris Dunaway" <du******@gmail.comwrote in message
news:11*********************@n67g2000cwd.googleg roups.com...
Anil Gupte wrote:
Hmm, sorry, but I cannnot find it. Not on the toolbox. The couple of
references in MSDN found seem to refer to VB 6.0, for example

I'm not sure why you aren't seeing it. When I search for WebBrowser on
MSDN, I get this item as the fourth one in the list:

WebBrowser Class (System.Windows.Forms)
Enables the user to navigate Web pages inside your form. ... Enables
the user to navigate Web pages inside your form. Namespace:
System.Windows.Forms
http://msdn2.microsoft.com/en-us/lib...ebbrowser.aspx
But Rad is right, the WebBrowser class is only available in VS2005.

There is no WebBrowser in the toolbox - I think even in VB6 I had to
add a
reference before I could insert it. But in .Net I cannot find an
reference
with the same or similar name. The above text also makes me wonder if
I
have to somehow include a VB6 project to be able to see a WebBrowser.

If you are using VS2005 and the WebBrowser control is not on the
toolbox, right click the toolbox and select Choose Items. Then click
the .Net Components tab and scroll down to WebBrowser and select it.

If you are using VS2003, right click the toolbox and select Add/Remove
items. Then click the COM components tab and select the Microsoft Web
Browser ActiveX control as you do now with VB6.

Chris



Dec 14 '06 #10
Hi Cor or anyone else who may be able to answer. I posted the following as
a separate thread (Subject: How to use WebBrowser Control in .Net 2003?) but
got no reply. Can anyone help?
***********************
I once (long time ago in VB 6) used the WebBrowser Control. I looked it up
on MSDN and it showed how to add it into the Toolbox. So that worked fine.
However, I cannot do much with it other than make it browse to a page. What
I want to do is to get the HTML sourse inside a page.

http://msdn2.microsoft.com/en-us/lib...entstream.aspx
shows a property as follows:
Dim instance As WebBrowser
Dim value As Stream

value = instance.DocumentStream

instance.DocumentStream = value

But I cannot seem to use it. Do I need to add a reference? If so, what
reference?

Also, in VB6, I seem to have done it through a control of type Inet. What
type of control is that? And what is the equivalent in .Net 2003?

***********************

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Anil,

Don't forget as Chriss wrote to set it in your toolbox and drag it from
there on your form.
Otherwise the RESX settings will most probably go wrong.

Cor

"Anil Gupte" <an*******@icinema.comschreef in bericht
news:ux**************@TK2MSFTNGP03.phx.gbl...
>OK. I found it. http://support.microsoft.com/kb/821771

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Anil Gupte" <an*******@icinema.comwrote in message
news:u%****************@TK2MSFTNGP03.phx.gbl...
>>>I am using .Net 2003. And I am sorry I thought you were referring to my
local MSDN, which is where I searched.

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Chris Dunaway" <du******@gmail.comwrote in message
news:11*********************@n67g2000cwd.googleg roups.com...
Anil Gupte wrote:
Hmm, sorry, but I cannnot find it. Not on the toolbox. The couple of
references in MSDN found seem to refer to VB 6.0, for example

I'm not sure why you aren't seeing it. When I search for WebBrowser on
MSDN, I get this item as the fourth one in the list:

WebBrowser Class (System.Windows.Forms)
Enables the user to navigate Web pages inside your form. ... Enables
the user to navigate Web pages inside your form. Namespace:
System.Windows.Forms
http://msdn2.microsoft.com/en-us/lib...ebbrowser.aspx
But Rad is right, the WebBrowser class is only available in VS2005.

There is no WebBrowser in the toolbox - I think even in VB6 I had to
add a
reference before I could insert it. But in .Net I cannot find an
reference
with the same or similar name. The above text also makes me wonder if
I
have to somehow include a VB6 project to be able to see a WebBrowser.

If you are using VS2005 and the WebBrowser control is not on the
toolbox, right click the toolbox and select Choose Items. Then click
the .Net Components tab and scroll down to WebBrowser and select it.

If you are using VS2003, right click the toolbox and select Add/Remove
items. Then click the COM components tab and select the Microsoft Web
Browser ActiveX control as you do now with VB6.

Chris



Dec 21 '06 #11
Anil,

The program I had which did everything I have upgraded to the webbrowser.
That does the doc now in another way.

Here some links.
webbrowser
http://support.microsoft.com/?kbid=311303

some faqs
http://support.microsoft.com/default...b;EN-US;311284

mshtml
http://msdn.microsoft.com/library/de...ng/hosting.asp

http://msdn.microsoft.com/library/de.../reference.asp

About the webbrowser is in these newsgroup probably beside me, the most
written by Charles Law.

Especially the part of casting which I cannot find now, but which you need
for good use.

He has helped me with this the first time I used that one.

http://groups.google.com/group/micro...rch+this+group

I hope that this brings you on the route,

Cor


I hope this helps a little bit?

Cor
"Anil Gupte" <an*******@icinema.comschreef in bericht
news:uB**************@TK2MSFTNGP06.phx.gbl...
Hi Cor or anyone else who may be able to answer. I posted the following
as a separate thread (Subject: How to use WebBrowser Control in .Net
2003?) but got no reply. Can anyone help?
***********************
I once (long time ago in VB 6) used the WebBrowser Control. I looked it
up
on MSDN and it showed how to add it into the Toolbox. So that worked
fine.
However, I cannot do much with it other than make it browse to a page.
What
I want to do is to get the HTML sourse inside a page.

http://msdn2.microsoft.com/en-us/lib...entstream.aspx
shows a property as follows:
Dim instance As WebBrowser
Dim value As Stream

value = instance.DocumentStream

instance.DocumentStream = value

But I cannot seem to use it. Do I need to add a reference? If so, what
reference?

Also, in VB6, I seem to have done it through a control of type Inet. What
type of control is that? And what is the equivalent in .Net 2003?

***********************

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Anil,

Don't forget as Chriss wrote to set it in your toolbox and drag it from
there on your form.
Otherwise the RESX settings will most probably go wrong.

Cor

"Anil Gupte" <an*******@icinema.comschreef in bericht
news:ux**************@TK2MSFTNGP03.phx.gbl...
>>OK. I found it. http://support.microsoft.com/kb/821771

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Anil Gupte" <an*******@icinema.comwrote in message
news:u%****************@TK2MSFTNGP03.phx.gbl.. .
I am using .Net 2003. And I am sorry I thought you were referring to my
local MSDN, which is where I searched.

--
Anil Gupte
www.keeninc.net
www.icinema.com

"Chris Dunaway" <du******@gmail.comwrote in message
news:11*********************@n67g2000cwd.google groups.com...
Anil Gupte wrote:
>Hmm, sorry, but I cannnot find it. Not on the toolbox. The couple of
>references in MSDN found seem to refer to VB 6.0, for example
>
I'm not sure why you aren't seeing it. When I search for WebBrowser
on
MSDN, I get this item as the fourth one in the list:
>
WebBrowser Class (System.Windows.Forms)
Enables the user to navigate Web pages inside your form. ... Enables
the user to navigate Web pages inside your form. Namespace:
System.Windows.Forms
http://msdn2.microsoft.com/en-us/lib...ebbrowser.aspx
>
>
But Rad is right, the WebBrowser class is only available in VS2005.
>
>There is no WebBrowser in the toolbox - I think even in VB6 I had to
>add a
>reference before I could insert it. But in .Net I cannot find an
>reference
>with the same or similar name. The above text also makes me wonder
>if I
>have to somehow include a VB6 project to be able to see a WebBrowser.
>
If you are using VS2005 and the WebBrowser control is not on the
toolbox, right click the toolbox and select Choose Items. Then click
the .Net Components tab and scroll down to WebBrowser and select it.
>
If you are using VS2003, right click the toolbox and select Add/Remove
items. Then click the COM components tab and select the Microsoft
Web
Browser ActiveX control as you do now with VB6.
>
Chris
>




Dec 21 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Vetrivel | last post by:
Application architecture : Develop interface between two existing systems, a. Enterprise CRM system b. Web based intranet system. Environment : Intranet Server : IIS and ASP. Script :...
2
by: Chris Bingham | last post by:
Hi everyone, Does anyone know how to fix the paper orientation depending on the paper size used when printing with the WebBrowser control please? What I've got is a HTML file, containing 1 big...
9
by: philip | last post by:
Is it possible, on a WebBrowser control, to intercept a HyperLink and react programmatically to this click ? That's my first question. In fact, I use the Webbrowser as a sort of report (I write...
7
by: Dave Booker | last post by:
I am using a WebBrowser object in my .NET 2.0 application, but it is not shown to the user. Every time a timer event triggers it to perform a m_WebBrowser.Navigate() I get that classic IE 'click'...
5
by: mabond | last post by:
Hi recently read a posting and reply about Excel processs still running after the Appliction.Quit was called. Thought I might be able to use the same...
2
by: Zytan | last post by:
I have a WebBroswer control, and I set the HTML it will display via DocumentText, which takes a a string. This shows the HTML code from the string in the control. But, sometimes, the WebBrowser...
18
by: Zytan | last post by:
I have multiple threads writing to WebBrowser (using a function that checks InvokedRequired, and if so, invokes itself on the WebBrowser thread) and they are getting deadlocked. They only...
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: Dom | last post by:
I have a prgram with a webBrowser control. The user can click on a Linked Reference and the webBrowser control shows that site. Sometimes the URL (not my program, but the URL I am browsing to)...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.