suppose...i have a webbrowser control on a form.....
and one button..
i go to www.google.com..
then
first i put some text in search box...now i want to click the "Search" button by clicking the button(on my form)..i use the following code...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Document.Forms(0).InvokeMember("SUBMIT")
End Sub
...................
now instead of "Search" button, suppose i want to click the "I m feeling lucky "button...
what would be the code then??
thanking in advance...
and one button..
i go to www.google.com..
then
first i put some text in search box...now i want to click the "Search" button by clicking the button(on my form)..i use the following code...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Document.Forms(0).InvokeMember("SUBMIT")
End Sub
...................
now instead of "Search" button, suppose i want to click the "I m feeling lucky "button...
what would be the code then??
thanking in advance...