View Full Version : Online txt file implementation
H-a-V-o-C_88
11-08-03, 03:55 PM
How would I make a button, that on click it receives an HTML file or txt file to be implemented into a textbox?
From where are you retriving the html or text file? from the web? from a local file?
H-a-V-o-C_88
11-09-03, 12:06 PM
From the web...
Emmanuel
12-03-03, 11:48 AM
Use the Internet transfer control and its OpenURL Method.
For example if its name is Inet1 and the textbox name is Text1 :
Text1.Text = Inet1.OpenURL("http://www.microsoft.com")
If you have a ftp access it works too :
Text1.Text = Inet1.OpenURL("ftp://ftp.microsoft.com/disclaimer.txt")
H-a-V-o-C_88
12-04-03, 07:43 AM
Use the Internet transfer control and its OpenURL Method.
For example if its name is Inet1 and the textbox name is Text1 :
Text1.Text = Inet1.OpenURL("http://www.microsoft.com")
If you have a ftp access it works too :
Text1.Text = Inet1.OpenURL("ftp://ftp.microsoft.com/disclaimer.txt")
What dou mean by the name Inet1? The name of the file or, something else? And what is it :p
Emmanuel
12-04-03, 10:17 AM
In this example, it's just the name of the activeX control you have to add in your form or in your module (Internet transfer control which will permit you to use the OpenURL Method). The name of the file you want to get (Or the web page) belongs to the URL parameter of the OpenUrl Method (See example with ftp).
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.