private void button1_Click(object sender, EventArgs e)
{
webBrowser1.Navigate("http://facebook.com");
// I WANT TO GO TO FACEBOOK DOT COM FIRST!!! AFTER, I WANT TO FILL ALL FORMS AUTOMATICALLY.
foreach (HtmlElement element in webBrowser1.Document.All)
{
if (element.Name == "email")
{
element.InnerText = textBox1.Text;
}
if (element.Name == "pass")
{
element.InnerText = textBox2.Text;
}
}
webBrowser1.Document.GetElementById("uxlqua_5").InvokeMember("click");
}
But this code gives framenetwork error. Because my software try to fill all forms before loading facebook.com .... how can I avoid this error? I want to fill all forms when facebook.com page is loaded in webBrowser1 ...
Loading

Sam HobbsRank #108 · 20.5K reputationPosted Feb 9, 2012, 9:53 PM EST
Csharp Ninja96 reputationPosted Feb 10, 2012, 9:17 AM EST
okay I will read this article ... I hope it will help me.
Cheers
Sam HobbsRank #108 · 20.5K reputationPosted Feb 10, 2012, 9:29 AM EST
I probably have seen many more questions such as this than any other member in this site. I have seen many questions in other forums as well as here. Unfortunately I am more likely than most any other member to get frustrated.
Thank you for reading my article. I will (I know I can) enjoy helping you but please try to understand the article.