Results 1 to 3 of 3

Thread: Load text from a url ?

  1. #1

    Thread Starter
    Addicted Member Tha Joey Madnez's Avatar
    Join Date
    May 2004
    Location
    Netherlands
    Posts
    179

    Unhappy Load text from a url ?

    Does anyone know how to load text from a url
    ( Example: www.url.com/text.txt ) into a textbox ?, or a richtextbox ?.

    Thx
    100% Done with the Software forLuidia

    Click here to goto the Luidia website

    -=[Visual Basic][Addicted]=-

  2. #2
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    VB Code:
    1. Option Explicit
    2. Private Sub Command1_Click()
    3.    With Label1
    4.       .Caption = ""
    5.       .AutoSize = True
    6.       .LinkTopic = "IExplore|WWW_GetWindowInfo"
    7.       .LinkItem = "0xffffffff"
    8.       .LinkMode = 2
    9.       .LinkRequest
    10.    End With
    11. End Sub

  3. #3
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    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:
    1. Option Explicit
    2.  
    3. Private Sub Command1_Click()
    4.     Command1.Enabled = False
    5.     Text1.Text = Inet1.OpenURL("http://www.vbforums.com")
    6. End Sub
    7.  
    8. Private Sub Inet1_StateChanged(ByVal State As Integer)
    9.     If State = icResponseCompleted Then
    10.         Command1.Enabled = True
    11.     End If
    12. End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width