Friday, July 31, 2009

How do you add alternate ways to click something in visual basic?

i recently just made a web browser but when I enter a website in the address bar, I have to click search to go to the website. Is there a way I can make it so after I am done entering the website I just have to press the ENTER key?

How do you add alternate ways to click something in visual basic?
The keypress event in the browser. If KeyAscii is 13, the user pressed enter, so Navigate2. (Off the top of my head - I haven't used a browser in VB in a few years, but executing on Enter is the same for all controls - or for the form itself if you enable key capture on the form.)


No comments:

Post a Comment