|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
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 wrote:
> ...and how do I insert one into my form? I used in VB 6.0 last, but cannot After searching for all of 20 seconds on MSDN, I found that it is> figure out where it is in .Net > called WebBrowser. To use it, you simply drag it onto your form from the toolbox. 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, Show quoteHide quote "Chris Dunaway" <dunaw***@gmail.com> wrote in message news:1166032840.622000.233960@16g2000cwy.googlegroups.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. > 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 What version of VS are you using? The WebBrowser is included in Visual> 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, Studio 2005 I am using .Net 2003 Enterprise
Show quoteHide quote "Rad [Visual C# MVP]" <nospam@nospam.com> wrote in message news:1vwvvnsmjltl1$.dlg@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 Anil Gupte wrote:
> Hmm, sorry, but I cannnot find it. Not on the toolbox. The couple of I'm not sure why you aren't seeing it. When I search for WebBrowser on> references in MSDN found seem to refer to VB 6.0, for example 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/library/system.windows.forms.webbrowser.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 If you are using VS2005 and the WebBrowser control is not on the> 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. 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 I am using .Net 2003. And I am sorry I thought you were referring to my
local MSDN, which is where I searched. Show quoteHide quote "Chris Dunaway" <dunaw***@gmail.com> wrote in message news:1166039156.867819.92220@n67g2000cwd.googlegroups.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/library/system.windows.forms.webbrowser.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 > OK. I found it. http://support.microsoft.com/kb/821771
Show quoteHide quote "Anil Gupte" <anil-l***@icinema.com> wrote in message news:u%23Q2a9yHHHA.1912@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" <dunaw***@gmail.com> wrote in message > news:1166039156.867819.92220@n67g2000cwd.googlegroups.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/library/system.windows.forms.webbrowser.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 >> > > 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 Show quoteHide quote "Anil Gupte" <anil-l***@icinema.com> schreef in bericht news:ux7a3AzHHHA.4068@TK2MSFTNGP03.phx.gbl... > OK. I found it. http://support.microsoft.com/kb/821771 > > -- > Anil Gupte > www.keeninc.net > www.icinema.com > > "Anil Gupte" <anil-l***@icinema.com> wrote in message > news:u%23Q2a9yHHHA.1912@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" <dunaw***@gmail.com> wrote in message >> news:1166039156.867819.92220@n67g2000cwd.googlegroups.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/library/system.windows.forms.webbrowser.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 >>> >> >> > > Yes, thanx I did that.
Show quoteHide quote "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:%23lxCUvzHHHA.1044@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" <anil-l***@icinema.com> schreef in bericht > news:ux7a3AzHHHA.4068@TK2MSFTNGP03.phx.gbl... >> OK. I found it. http://support.microsoft.com/kb/821771 >> >> -- >> Anil Gupte >> www.keeninc.net >> www.icinema.com >> >> "Anil Gupte" <anil-l***@icinema.com> wrote in message >> news:u%23Q2a9yHHHA.1912@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" <dunaw***@gmail.com> wrote in message >>> news:1166039156.867819.92220@n67g2000cwd.googlegroups.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/library/system.windows.forms.webbrowser.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 >>>> >>> >>> >> >> > > 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/library/system.windows.forms.webbrowser.documentstream.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? *********************** Show quoteHide quote "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message news:%23lxCUvzHHHA.1044@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" <anil-l***@icinema.com> schreef in bericht > news:ux7a3AzHHHA.4068@TK2MSFTNGP03.phx.gbl... >> OK. I found it. http://support.microsoft.com/kb/821771 >> >> -- >> Anil Gupte >> www.keeninc.net >> www.icinema.com >> >> "Anil Gupte" <anil-l***@icinema.com> wrote in message >> news:u%23Q2a9yHHHA.1912@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" <dunaw***@gmail.com> wrote in message >>> news:1166039156.867819.92220@n67g2000cwd.googlegroups.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/library/system.windows.forms.webbrowser.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 >>>> >>> >>> >> >> > > 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.aspx?scid=kb;EN-US;311284 mshtml http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/hosting/hosting.asp http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/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/microsoft.public.dotnet.languages.vb/search?hl=en&group=microsoft.public.dotnet.languages.vb&q=axwebbrowser+cor+%22Charles+Law%22&qt_g=1&searchnow=Search+this+group I hope that this brings you on the route, Cor I hope this helps a little bit? Cor Show quoteHide quote "Anil Gupte" <anil-l***@icinema.com> schreef in bericht news:uBklT5MJHHA.4000@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/library/system.windows.forms.webbrowser.documentstream.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]" <notmyfirstn***@planet.nl> wrote in message > news:%23lxCUvzHHHA.1044@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" <anil-l***@icinema.com> schreef in bericht >> news:ux7a3AzHHHA.4068@TK2MSFTNGP03.phx.gbl... >>> OK. I found it. http://support.microsoft.com/kb/821771 >>> >>> -- >>> Anil Gupte >>> www.keeninc.net >>> www.icinema.com >>> >>> "Anil Gupte" <anil-l***@icinema.com> wrote in message >>> news:u%23Q2a9yHHHA.1912@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" <dunaw***@gmail.com> wrote in message >>>> news:1166039156.867819.92220@n67g2000cwd.googlegroups.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/library/system.windows.forms.webbrowser.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 >>>>> >>>> >>>> >>> >>> >> >> > >
Manipulating controls created by another thread
Estimates on money lost because of VB.NET Re: Great Reasons Not To Learn VB.NET - PART 1 The below snippet does not work...anyone know how to reference a procedure? time difference Form1.closing in VB2005??? DateTime Help referencing control backgorund image Can't maximize COM error in vb.net2 |
|||||||||||||||||||||||