webBrowser controls Document property not reflecting change.......

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Question123
    New Member
    • Feb 2008
    • 41

    webBrowser controls Document property not reflecting change.......

    Hi

    i am trying to get changed HtmlDocument. with folling code

    private void fun(string url)
    {

    webBrowser1.Url = new Uri(url);
    webBrowser1.Nav igate(new Uri(url));

    HtmlDocument doc = webBrowser1.Doc ument;

    }

    but i am not getting changed document. i am not getting whts the wrong.

    So please help me.....
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    You have to wait for the event to fire that says it is done navigating

    Comment

    Working...