Hi,
I used WebBrowser to load a webpage in my dialog. Now I want to insert text into a webpage's textbox (e.g., username textbox on gmail), but I have not thought how to solve this problem yet. Please help me again!
Thanks so much.
Printable View
Hi,
I used WebBrowser to load a webpage in my dialog. Now I want to insert text into a webpage's textbox (e.g., username textbox on gmail), but I have not thought how to solve this problem yet. Please help me again!
Thanks so much.
have you found a solution for this issue?
If you need to do this automatically, you can use Active Accessibility.
I would like to know that too
I found this:
but thats hard to understand without code examples for a beginnerCode:Use the document property to get a reference to the loaded document in the control. You can then use the GetElementById to get a reference to the textbox element. Then you can use the SetAttribute on the element to set its "value" and the InvokeMember to "submit" the form.
come on guys,
there gotta be someone who can help solve the puzzle
OK I almost got it now,
The only problem left is that I cant click the button on the Site,
I tried:
I also tried some other codes but failedCode:webBrowser1.Document.GetElementById("button").InvokeMember("click");
and
webBrowser1.Document.All["button"].InvokeMember("click");
the site where the button is is: linksafeme.me
prince1, please do not revive old threads. Make a new one