Webbrowser Control and Keypress Event

G

Guest

I have an application that I have created that essentially allows me to
automate web page processing for my company. However, I have run into a a
minor set-back that I have a temporary solution in place, but would like a
better way to handle it.

Currently, the user fills in information on the page and when finished
pushes the "enter" key to kick off the web page processing. Just after the
web page starts processing, I need to kick off several other functions that
are built into the program to execute SQL queries and then write output files
to their local drive. Everything works, except that I have not been able to
find a way to isolate the "enter" keypress to kick off the functions.

I have tried using the PreviewKeyDown Event, in which I can use SendKeys to
send the "Enter" key and then process my functions, however, I do not know
how to discard the original "Enter" key. I have also tried using the
WH_KEYBOARD_LL hook, but for some reason, my code (which worked in VB.Net
2003) doesn't work in VB.Net 2005.

I am open for any suggestions, because right now I am stumped. I am using
Visual Studio Pro 2005 and the program is written in VB.Net. Thanks is
advance for any help you can provide.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top