Does anyone know how to load text from a url
( Example: www.url.com/text.txt ) into a textbox ?, or a richtextbox ?. :sick:
Thx :wave:
Printable View
Does anyone know how to load text from a url
( Example: www.url.com/text.txt ) into a textbox ?, or a richtextbox ?. :sick:
Thx :wave:
VB Code:
Option Explicit Private Sub Command1_Click() With Label1 .Caption = "" .AutoSize = True .LinkTopic = "IExplore|WWW_GetWindowInfo" .LinkItem = "0xffffffff" .LinkMode = 2 .LinkRequest End With End Sub
To get the contents of a link
Add Inet Control to form
( Ctrl-T check microsoft internet transer control)
Add Command button
add textbox
VB Code:
Option Explicit Private Sub Command1_Click() Command1.Enabled = False Text1.Text = Inet1.OpenURL("http://www.vbforums.com") End Sub Private Sub Inet1_StateChanged(ByVal State As Integer) If State = icResponseCompleted Then Command1.Enabled = True End If End Sub