WebBrowser
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I want to get and set values and trigger events in a website that loads inside a WebBrowser object so, i cant get the code right i get NullReferenceException
WebBrowser_Main.Navigate("the_link");
while (WebBrowser\_Main.IsBusy == true) { Application.DoEvents(); }
HtmlElement textbox_username = WebBrowser_Main.Document.GetElementById("user");
HtmlElement textbox_password = WebBrowser_Main.Document.GetElementById("password");
HtmlElement button = WebBrowser_Main.Document.GetElementById("submit");textbox_username.InnerText = "the_username";
textbox_username.InnerText = "the_password";
button.click(); // i have to work delegates here :()nelsonpaixao@yahoo.com.br trying to help & get help