Access to internet with VB Express Edition

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tosco

    #1

    Access to internet with VB Express Edition

    I'm new to VB.net and I want to upgrade an application from VB6 to
    VB2005.
    The VB6 application uses an invisible WebBrowser control to access some
    pages and parse the content.
    Is there a better way with VB2005?
    Nothing wrong with the WebBrowser (besides the memory leaks), but since
    I don't need to show any web page content I was wondering if there is a
    ligher way.

    Thanks,
    Stefano

  • Tosco

    #2
    Re: Access to internet with VB Express Edition

    I think that this page would help me, but I'm not able to find the
    example.
    How can I download the mentioned files?

    Tosco wrote:
    I'm new to VB.net and I want to upgrade an application from VB6 to
    VB2005.
    The VB6 application uses an invisible WebBrowser control to access some
    pages and parse the content.
    Is there a better way with VB2005?
    Nothing wrong with the WebBrowser (besides the memory leaks), but since
    I don't need to show any web page content I was wondering if there is a
    ligher way.
    >
    Thanks,
    Stefano

    Comment

    • Ralph

      #3
      Re: Access to internet with VB Express Edition


      "Tosco" <stefano.menci@ gmail.comwrote in message
      news:1167619335 .824861.252060@ a3g2000cwd.goog legroups.com...
      I think that this page would help me, but I'm not able to find the
      example.
      How can I download the mentioned files?
      >
      Tosco wrote:
      I'm new to VB.net and I want to upgrade an application from VB6 to
      VB2005.
      The VB6 application uses an invisible WebBrowser control to access some
      pages and parse the content.
      Is there a better way with VB2005?
      Nothing wrong with the WebBrowser (besides the memory leaks), but since
      I don't need to show any web page content I was wondering if there is a
      ligher way.

      Thanks,
      Stefano
      >
      --
      <response type="generic" language="VB.Ne t">
      This newsgroup is for users of Visual Basic version 6.0
      and earlier and not the misleadingly named VB.Net
      or VB 200x. Solutions, and often even the questions,
      for one platform will be meaningless in the other.
      When VB.Net was released Microsoft created new newsgroups
      devoted to the new platform so that neither group of
      developers need wade through the clutter of unrelated
      topics. Look for newsgroups with the words "dotnet",
      "framework" , or "vsnet" in their name.

      For the news.microsoft. com news server try these:

      news://msnews.microsoft.com/
      microsoft.publi c.dotnet.genera l
      microsoft.publi c.dotnet.langua ges.vb
      microsoft.publi c.dotnet.langua ges.vb.upgrade
      microsoft.publi c.dotnet.langua ges.vb.controls
      microsoft.publi c.dotnet.framew ork.windowsform s.controls
      microsoft.publi c.vsnet.general
      microsoft.publi c.vstudio.gener al
      microsoft.publi c.dotnet.framew ork.aspnet....
      </response>


      Comment

      • Cor Ligthert [MVP]

        #4
        Re: Access to internet with VB Express Edition

        Ralph,

        In VB6 and VB.Net 2002/2003 was the interop AXWebbrowser used.
        In VB.Net 2005 is integrated the Net Class Webbrowser.

        Be aware that it are still interops to Interenet Explorer. The webbrowser
        class has a little bit less events as the AXWebbrowser, however it has more
        properties to manipulate the document.

        One problem I have is that you cannot do anymore download complete, however
        Herfried has put in this newsgroup nice code to overcome that.

        Cor



        "Ralph" <nt_consulting6 4@yahoo.comschr eef in bericht
        news:b9adnTfZL7 Ah5AXYnZ2dnUVZ_ vShnZ2d@arkansa s.net...
        >
        "Tosco" <stefano.menci@ gmail.comwrote in message
        news:1167619335 .824861.252060@ a3g2000cwd.goog legroups.com...
        >I think that this page would help me, but I'm not able to find the
        >example.
        >How can I download the mentioned files?
        >>
        >Tosco wrote:
        I'm new to VB.net and I want to upgrade an application from VB6 to
        VB2005.
        The VB6 application uses an invisible WebBrowser control to access some
        pages and parse the content.
        Is there a better way with VB2005?
        Nothing wrong with the WebBrowser (besides the memory leaks), but since
        I don't need to show any web page content I was wondering if there is a
        ligher way.
        >
        Thanks,
        Stefano
        >>
        >
        --
        <response type="generic" language="VB.Ne t">
        This newsgroup is for users of Visual Basic version 6.0
        and earlier and not the misleadingly named VB.Net
        or VB 200x. Solutions, and often even the questions,
        for one platform will be meaningless in the other.
        When VB.Net was released Microsoft created new newsgroups
        devoted to the new platform so that neither group of
        developers need wade through the clutter of unrelated
        topics. Look for newsgroups with the words "dotnet",
        "framework" , or "vsnet" in their name.
        >
        For the news.microsoft. com news server try these:
        >
        news://msnews.microsoft.com/
        microsoft.publi c.dotnet.genera l
        microsoft.publi c.dotnet.langua ges.vb
        microsoft.publi c.dotnet.langua ges.vb.upgrade
        microsoft.publi c.dotnet.langua ges.vb.controls
        microsoft.publi c.dotnet.framew ork.windowsform s.controls
        microsoft.publi c.vsnet.general
        microsoft.publi c.vstudio.gener al
        microsoft.publi c.dotnet.framew ork.aspnet....
        </response>
        >
        >

        Comment

        • RobinS

          #5
          Re: Access to internet with VB Express Edition


          "Ralph" <nt_consulting6 4@yahoo.comwrot e in message
          news:b9adnTfZL7 Ah5AXYnZ2dnUVZ_ vShnZ2d@arkansa s.net...
          >
          "Tosco" <stefano.menci@ gmail.comwrote in message
          news:1167619335 .824861.252060@ a3g2000cwd.goog legroups.com...
          >I think that this page would help me, but I'm not able to find the
          >example.
          >How can I download the mentioned files?
          >>
          >Tosco wrote:
          I'm new to VB.net and I want to upgrade an application from VB6 to
          VB2005.
          The VB6 application uses an invisible WebBrowser control to access
          some
          pages and parse the content.
          Is there a better way with VB2005?
          Nothing wrong with the WebBrowser (besides the memory leaks), but
          since
          I don't need to show any web page content I was wondering if there
          is a
          ligher way.
          >
          Thanks,
          Stefano
          >>
          >
          --
          <response type="generic" language="VB.Ne t">
          This newsgroup is for users of Visual Basic version 6.0
          and earlier and not the misleadingly named VB.Net
          or VB 200x. Solutions, and often even the questions,
          for one platform will be meaningless in the other.
          When VB.Net was released Microsoft created new newsgroups
          devoted to the new platform so that neither group of
          developers need wade through the clutter of unrelated
          topics. Look for newsgroups with the words "dotnet",
          "framework" , or "vsnet" in their name.
          >
          For the news.microsoft. com news server try these:
          >
          news://msnews.microsoft.com/
          microsoft.publi c.dotnet.genera l
          microsoft.publi c.dotnet.langua ges.vb
          microsoft.publi c.dotnet.langua ges.vb.upgrade
          microsoft.publi c.dotnet.langua ges.vb.controls
          microsoft.publi c.dotnet.framew ork.windowsform s.controls
          microsoft.publi c.vsnet.general
          microsoft.publi c.vstudio.gener al
          microsoft.publi c.dotnet.framew ork.aspnet....
          </response>
          >
          >
          Ralph -- he posted it to both groups -- both .Net and VB6andUnder.

          Robin S.


          Comment

          • mayayana

            #6
            Re: Access to internet with VB Express Edition

            I'm new to VB.net and I want to upgrade an application from VB6 to
            VB2005.
            The VB6 application uses an invisible WebBrowser control to access some
            pages and parse the content.
            Is there a better way with VB2005?

            You can find a much lighter way here:


            It uses the Windows Winsock library wsock32 to
            fetch via http on Win95 and up with no dependencies.
            I have no idea whether it works on VB.Net. If you want a
            specifically-VB.Net answer then don't post it to
            a VB newsgroup.
            Nothing wrong with the WebBrowser (besides the memory leaks), but since
            I don't need to show any web page content I was wondering if there is a
            ligher way.
            >
            If you're "upgrading" to VB.Net then why worry
            about bloat and "memory leaks"? You're going
            to be saddled with 70 MB of runtime being loaded.
            You can't do that a "lighter way", so there's not
            much point being concerned about relatively minor
            sloppiness like loading a whole instance of IE just to
            download a webpage.





            Comment

            • Jeff Johnson

              #7
              Re: Access to internet with VB Express Edition


              "RobinS" <RobinS@NoSpam. yah.nonewrote in message
              news:0s-dnSMi7vs0KgXYnZ 2dnUVZ_vGinZ2d@ comcast.com...
              Ralph -- he posted it to both groups -- both .Net and VB6andUnder.
              Then the proper response would be "please do not crosspost to both .NET and
              non-.NET newsgroups."


              Comment

              • RobinS

                #8
                Re: Access to internet with VB Express Edition


                "Jeff Johnson" <i.get@enough.s pamwrote in message
                news:uv%23zYKfL HHA.4992@TK2MSF TNGP04.phx.gbl. ..
                >
                "RobinS" <RobinS@NoSpam. yah.nonewrote in message
                news:0s-dnSMi7vs0KgXYnZ 2dnUVZ_vGinZ2d@ comcast.com...
                >
                >Ralph -- he posted it to both groups -- both .Net and VB6andUnder.
                >
                Then the proper response would be "please do not crosspost to both
                .NET and non-.NET newsgroups."
                Well, he was talking about moving something from VB6 to VB.Net, so
                I could understand why he cross-posted it. He was probably hoping
                that someone who had moved from VB6 to .Net could help, although
                why he thinks they would be lurking in the VB6 newsgroup is a
                mystery. At least he cross-posted it instead of multi-posting it.

                Robin S.


                Comment

                • Herfried K. Wagner [MVP]

                  #9
                  Re: Access to internet with VB Express Edition

                  "Cor Ligthert [MVP]" <notmyfirstname @planet.nlschri eb:
                  In VB6 and VB.Net 2002/2003 was the interop AXWebbrowser used.
                  Well, as VB6 was actually COM-based, no "interop" was required ;-).
                  However, you are right, .NET 2.0 comes with a wrapper around the original
                  classes which simplifies its usage.

                  --
                  M S Herfried K. Wagner
                  M V P <URL:http://dotnet.mvps.org/>
                  V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

                  Comment

                  • Ralph

                    #10
                    Re: Access to internet with VB Express Edition


                    "mayayana" <mayaXXyana1a@m indXXspring.com wrote in message
                    news:Fufmh.9647 $X72.5992@newsr ead3.news.pas.e arthlink.net...
                    I'm new to VB.net and I want to upgrade an application from VB6 to
                    VB2005.
                    The VB6 application uses an invisible WebBrowser control to access some
                    pages and parse the content.
                    Is there a better way with VB2005?
                    >
                    >
                    You can find a much lighter way here:

                    >
                    It uses the Windows Winsock library wsock32 to
                    fetch via http on Win95 and up with no dependencies.
                    I have no idea whether it works on VB.Net. If you want a
                    specifically-VB.Net answer then don't post it to
                    a VB newsgroup.
                    >
                    Nothing wrong with the WebBrowser (besides the memory leaks), but since
                    I don't need to show any web page content I was wondering if there is a
                    ligher way.
                    >
                    If you're "upgrading" to VB.Net then why worry
                    about bloat and "memory leaks"? You're going
                    to be saddled with 70 MB of runtime being loaded.
                    You can't do that a "lighter way", so there's not
                    much point being concerned about relatively minor
                    sloppiness like loading a whole instance of IE just to
                    download a webpage.
                    >
                    LOL



                    Comment

                    • Cor Ligthert [MVP]

                      #11
                      Re: Access to internet with VB Express Edition

                      Robin,

                      I have tried to avoid these discussions by just removing the link to the
                      general vb newsgroup.

                      Maybe is the counterpart that Jeff and others cannot see my answer and the
                      addition on that from Herfried.

                      Therefore for those who thinks this question is still open. It is answered
                      for VB.Net.

                      Ralph had already given a message about the use of newsgroups, I saw no
                      reason to repeat that.

                      Cor


                      Comment

                      • Tom Shelton

                        #12
                        Re: Access to internet with VB Express Edition

                        On 2007-01-01, Tosco <stefano.menci@ gmail.comwrote:
                        I'm new to VB.net and I want to upgrade an application from VB6 to
                        VB2005.
                        The VB6 application uses an invisible WebBrowser control to access some
                        pages and parse the content.
                        Is there a better way with VB2005?
                        Nothing wrong with the WebBrowser (besides the memory leaks), but since
                        I don't need to show any web page content I was wondering if there is a
                        ligher way.
                        >
                        >
                        I didn't see it mentioned (but I could be worng), but there most certainly is
                        a lighter way then using the WebBrowser control. Especially, since I believe
                        I saw further down the thread that these files were not going to be displayed.
                        The answer lies in System.Net.WebC lient. There is an VB.NET example in the
                        help files for this class. If you need more specific help, please feel free
                        to post again.

                        --
                        Tom Shelton

                        Comment

                        • RobinS

                          #13
                          Re: Access to internet with VB Express Edition

                          Got it. Thanks for clarifying that for me, Cor.

                          Robin S.
                          -------------------
                          "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
                          news:eUgwPEjLHH A.3560@TK2MSFTN GP02.phx.gbl...
                          Robin,
                          >
                          I have tried to avoid these discussions by just removing the link to
                          the general vb newsgroup.
                          >
                          Maybe is the counterpart that Jeff and others cannot see my answer and
                          the addition on that from Herfried.
                          >
                          Therefore for those who thinks this question is still open. It is
                          answered for VB.Net.
                          >
                          Ralph had already given a message about the use of newsgroups, I saw
                          no reason to repeat that.
                          >
                          Cor
                          >

                          Comment

                          • Bob O`Bob

                            #14
                            Re: Access to internet with VB Express Edition

                            Tom Shelton wrote:
                            On 2007-01-01, Tosco <stefano.menci@ gmail.comwrote:
                            >
                            >I'm new to VB.net and I want to upgrade an application from VB6 to
                            >VB2005.
                            >The VB6 application uses an invisible WebBrowser control to access some
                            >pages and parse the content.
                            >Is there a better way with VB2005?
                            >Nothing wrong with the WebBrowser (besides the memory leaks), but since
                            >I don't need to show any web page content I was wondering if there is a
                            >ligher way.
                            >>
                            >>
                            >>
                            >
                            I didn't see it mentioned (but I could be worng), but there most certainly is
                            a lighter way then using the WebBrowser control. Especially, since I believe
                            I saw further down the thread that these files were not going to be displayed.
                            The answer lies in System.Net.WebC lient. There is an VB.NET example in the
                            help files for this class. If you need more specific help, please feel free
                            to post again.
                            >
                            >
                            But NOT to the NON-DOTNET newsgroups.



                            Bob
                            MS MVP, VB 2000-2006
                            --

                            Comment

                            • Tom Shelton

                              #15
                              Re: Access to internet with VB Express Edition

                              On 2007-01-03, Bob O`Bob <filterbob@yaho ogroups.comwrot e:
                              Tom Shelton wrote:
                              >On 2007-01-01, Tosco <stefano.menci@ gmail.comwrote:
                              >>
                              >>I'm new to VB.net and I want to upgrade an application from VB6 to
                              >>VB2005.
                              >>The VB6 application uses an invisible WebBrowser control to access some
                              >>pages and parse the content.
                              >>Is there a better way with VB2005?
                              >>Nothing wrong with the WebBrowser (besides the memory leaks), but since
                              >>I don't need to show any web page content I was wondering if there is a
                              >>ligher way.
                              >>>
                              >>>
                              >>>
                              >>
                              >I didn't see it mentioned (but I could be worng), but there most certainly is
                              >a lighter way then using the WebBrowser control. Especially, since I believe
                              >I saw further down the thread that these files were not going to be displayed.
                              >The answer lies in System.Net.WebC lient. There is an VB.NET example in the
                              >help files for this class. If you need more specific help, please feel free
                              >to post again.
                              >>
                              >>
                              >
                              But NOT to the NON-DOTNET newsgroups.
                              I apologize - I meant to set the followups to the .net group. I will try not
                              to let it happen again.

                              --
                              Tom Shelton

                              Comment

                              Working...