Código:
pero me marca null reference exepcion, no se, le estoy pasando los parametros private void button2_Click(object sender, EventArgs e) { webBrowser1.Navigate("http://try_area.jsp"); setValue("q","hola"); } public void setValue(string name, string valor) { HTMLInputElement input = (HTMLInputElement)theDoc.getElementById(name); input.value = valor; }