Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. OpenURL problem

OpenURL problem

Scheduled Pinned Locked Moved Visual Basic
comhelpquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Huling
    wrote on last edited by
    #1

    When I open the web page "http://finance.yahoo.com/q/os?s=qqqq&m=2007-04" and view the source in Internet Explorer with Notepad, the text I am looking for looks like class="yfnc_h" align="right">11.67< but when I use RichTextBox1.Text = Inet1.OpenURL("http://finance.yahoo.com/q/os?s=qqqq&m=2007-04") it looks like class="yfnc_h" align="right">11.67< in the RichTextBox. What happened to the

    S D 2 Replies Last reply
    0
    • H Huling

      When I open the web page "http://finance.yahoo.com/q/os?s=qqqq&m=2007-04" and view the source in Internet Explorer with Notepad, the text I am looking for looks like class="yfnc_h" align="right">11.67< but when I use RichTextBox1.Text = Inet1.OpenURL("http://finance.yahoo.com/q/os?s=qqqq&m=2007-04") it looks like class="yfnc_h" align="right">11.67< in the RichTextBox. What happened to the

      S Offline
      S Offline
      Stigmurder
      wrote on last edited by
      #2

      What happened to the what? those two lines of text look the same to me.

      1 Reply Last reply
      0
      • H Huling

        When I open the web page "http://finance.yahoo.com/q/os?s=qqqq&m=2007-04" and view the source in Internet Explorer with Notepad, the text I am looking for looks like class="yfnc_h" align="right">11.67< but when I use RichTextBox1.Text = Inet1.OpenURL("http://finance.yahoo.com/q/os?s=qqqq&m=2007-04") it looks like class="yfnc_h" align="right">11.67< in the RichTextBox. What happened to the

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        And what is Inet1 defined as? What class?

        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        H 2 Replies Last reply
        0
        • D Dave Kreskowiak

          And what is Inet1 defined as? What class?

          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          H Offline
          H Offline
          Huling
          wrote on last edited by
          #4

          Inet1 is an Internet Transfer Control. Basically, I am loading the webpage into a richtextbox with RichTextBox1.Text = Inet1.OpenURL("http://finance.yahoo.com/q/os?s=qqqq&m=2007-04") But a search for "yfs_l10_" will find nothing. However, if you use View Source in Internet Explorer, "yfs_l10_" will be found. I don't understand if the text is getting altered by the Internet Transfer Control or the RichTextBox. Thanks for you help, Huling

          1 Reply Last reply
          0
          • D Dave Kreskowiak

            And what is Inet1 defined as? What class?

            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            H Offline
            H Offline
            Huling
            wrote on last edited by
            #5

            Dave, I now see your confusion which is really the basis of my question. When I cut and pasted some of the text from Notepad into my post it was automatically changed and the text is missing from my post. This is the same thing that is happening in my program. So is there a way to turn off the formatting in the richtextbox and make the text appear as it does in Notepad. I have tried most of the property settings with no success. Thanks, Huling

            D 1 Reply Last reply
            0
            • H Huling

              Dave, I now see your confusion which is really the basis of my question. When I cut and pasted some of the text from Notepad into my post it was automatically changed and the text is missing from my post. This is the same thing that is happening in my program. So is there a way to turn off the formatting in the richtextbox and make the text appear as it does in Notepad. I have tried most of the property settings with no success. Thanks, Huling

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              No, there isn't. Some of the RTB formatting codes look like something out of HTML. If you want to see all of the HTML, you'd have to use a TextBox to do it. The TextBox doesn't support any kind of formatting so there won't be a problem with it trying to interpret the data (Text) of the document.

              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              H 1 Reply Last reply
              0
              • D Dave Kreskowiak

                No, there isn't. Some of the RTB formatting codes look like something out of HTML. If you want to see all of the HTML, you'd have to use a TextBox to do it. The TextBox doesn't support any kind of formatting so there won't be a problem with it trying to interpret the data (Text) of the document.

                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

                H Offline
                H Offline
                Huling
                wrote on last edited by
                #7

                Dave, Thanks for your replys. I tried a TextBox and that did not work either. I think it's the Inet control that is reformatting the text. I did get it working with the API call URLDownloadToFile which apparently saves the raw text a file. I then reload to the RichTextBox for searching and all the text is there. Thanks again, Huling

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups