OK, I Did this:
Started a new
VB project.
Then went to menu and clicked 'project', 'components'
I then choose 'Microsoft Internet Transfer Control'
(It lives in C:\WINDOWS\system32\MSINET.OCX)
It now appears in my toolbox.
I lift it (Inet1) onto the empty form.
Now I add the code to Form1:
Private Sub Form_Load()
Dim strX As String
strX = Inet1.OpenURL("http://www.choicefx.com/prices.html")
Open "D:\FX Lab\FXTest.txt" For Output As #1
Print #1, strX
Close #1
End Sub
Run the program and get the result:
<html>
<head>
<title>Choice FX Live Data</title>
</head>
<frameset rows="10%,*,12%" border="0" cols="*">
<frame name="prices_top" src="banner-join.html" scrolling="no" frameborder="0" noresize>
<frame name="prices_bottom" src="cgi-bin/liveprices.pl" scrolling="no" frameborder="0" noresize>
<frame name="help" src="help.html" scrolling=no frameborder="0" noresize>
</frameset>
<noframes></noframes>
</html>
But this is not the complete HTML source that I get
from IE if I open it by hand. Why? (Note the <noframes> tags)
Could this be fixed?
(PS sorry about the file #1.)