TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Csharp Ninja
NA
97
179.1k
This code doesn't work!!!
Feb 9 2012 6:47 PM
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 ...
Reply
Answers (
3
)
Problem in print preview the file before printing
Calendar control