OpenURL problem
-
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
-
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
What happened to the what? those two lines of text look the same to me.
-
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
And what is
Inet1
defined as? What class?Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
And what is
Inet1
defined as? What class?Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Inet1 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
-
And what is
Inet1
defined as? What class?Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Dave, 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
-
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
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 -
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, 2007Dave, 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