Results 1 to 12 of 12

Thread: [RESOLVED] Get HTML With Inet

Threaded View

  1. #8

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    760

    Re: Get HTML With Inet

    @Pino - Do you want to see my coding using Inet?
    I've created a new project to check if something in my program is doing this but it isnt.
    The project has 1 Inet control (Inet), a Commandbutton (Command1), and a textbox (Text1).

    This is my code:
    VB Code:
    1. Private Sub Command1_Click()
    2. Dim HTML As String
    3. HTML = Inet.OpenURL(Text1.Text)
    4.  
    5. Debug.Print HTML
    6. End Sub
    7.  
    8. Private Sub Form_Load()
    9. Text1.Text = "http://www.azlyrics.com/lyrics/craigdavid/onelastdance.html"
    10. End Sub
    11.  
    12. Private Sub Inet_StateChanged(ByVal State As Integer)
    13. If State <> 7 Then Exit Sub
    14. Debug.Print State 'If I break here and wait 1 or 2 seconds and then resume it works fine
    15. End Sub

    Maybe I should just code the program to wait 1 second.
    What is the API call to Wait or Sleep or something?
    Last edited by shirazamod; Jan 20th, 2006 at 10:50 AM.
    If I helped you out, please consider adding to my reputation!

    -- "The faulty interface lies between the chair and the keyboard" --

    VB6 Programs By Me:
    ** Dictionary, Thesaurus & Rhyme-Generator In One ** WMP Recent Files List Editor ** Pretty Impressive Clock ** Extract Firefox History **

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