hey
i'm having problems in retrieving controls(textboxs,buttons) from any webapplication(html documents)
this is the code i'm using when i try to retrieve the search textbox in www.google.com i recieve nothing:S:S:S::S:S
can any one help me plzz urgentlyyyy
private void webBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e)
{
HtmlDocument doc = webBrowser1.Document;
foreach (HtmlElement t in doc.All)
{
if (t.GetAttribute("type") == "text")
{
t.LostFocus += new HtmlElementEventHandler(t_LostFocus);
MessageBox.Show("i'm in if of text");
}
else
if (t.GetAttribute("type") == "button")
{
t.Click += new HtmlElementEventHandler(t_Click);
MessageBox.Show("button");
}
}
}