i'm working on win form app that contains a web browser control, in the web page there is a text box field that i get it as htmlelement..
i fill it correctly with a string value, and then i want to send enter key press to submit the value in it ..
this is my code so far :
HtmlDocument hd = wbr.Document;//wbr is web browser control
HtmlElement he = hd.GetElementById("response_field");
he.SetAttribute("value", ans);//filled correctly
wbr.Select();
he.Focus();
he.InvokeMember("submit");
SendKeys.Send("{ENTER}");
i tried invoke member, tried sendkey but none of them works..
how to do this?