Friday, May 14, 2010

In Visual Basic, how do I make the Arrow Keys control the back and forward buttons in my form?

I created a very simple web browser in Visual Basic. Now, I want the left arrow key to make the Back button get clicked and the right arrow key to make the Forward button get clicked. I also want the Enter key to make the Enter button click. How do I do this? Do I use RaiseEvent? How do I implement it?In Visual Basic, how do I make the Arrow Keys control the back and forward buttons in my form?
so...ur input is in the browser?


first,use webbrowser.previewkeydown event to get the pressed key


then use button.performclick

No comments:

Post a Comment