Results 1 to 3 of 3
  1. #1
    ppl2pass's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    804
    Reputation
    5
    Thanks
    111
    My Mood
    Amused

    Document_Completed

    Can i request for a tutorial for document_completed for webbroswer.
    i am still having trouble trying to check if the page is loaded or not.

  2. #2
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    can you see the page, or do you mean you want to the code to read if the page loaded
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  3. #3
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed


    Moved to tutorial request section

    You can use a Timer that checks readystate, isbusy, or use DocumentComplete(), I already expressed the two most common ways, but I take it those didn't work for you.

    Code:
                    If WebBrowser1.IsBusy then 
                            'do nothing
                    Else
                     'Your code here
                    End If
    actual use:

    Code:
    If WebBrowser1.IsBusy Then
                'do nothing 
            Else
                WebBrowser1.Document.GetElementById("DataPanel1_TitleLink").InvokeMember("click")
                System.Threading.Thread.Sleep(1000)
                WebBrowser1.Document.GetElementById("forum__ctl0_edit").InnerText = "This Works"
            End If
    I tested 5 times, worked every time.

    Hope this helps you
    Last edited by NextGen1; 02-24-2010 at 01:37 AM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  4. The Following 2 Users Say Thank You to NextGen1 For This Useful Post:

    CyberGenius (02-24-2010),Zoom (02-24-2010)

Similar Threads

  1. Document_Completed
    By ppl2pass in forum Visual Basic Programming
    Replies: 2
    Last Post: 02-24-2010, 01:34 AM