I am writing an application (in C# using VS 2003) that will disaply OFFLINE HTML content in a Web Browser control.
The diaplayed HTML page will exist on the local hard drive. A portion of the page will pull web content while the rest will be an HTML form like the following:
How does this text apply to you?
<INPUT ID="txtApply" TYPE="text" />
<INPUT ID="btnSubmit" TYPE="submit" VALUE="Submit" />
When the user clicks the submit button, instead of any HTML action, I want my application to be able to extract the text from the text box control.
I will be using the Microsoft.mshtml library to gaining access to the underlying DOM is not a problem. However, I am not sure on how to access the relevant elements at the appropriate time when the user clicks Submit.