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}");
< /code>
Я попытался вызвать участник, попробовал SendKey, но ни один из них не работает .. < /p>
Как это сделать? < /p>
Подробнее здесь: https://stackoverflow.com/questions/203 ... er-control