activate a button using any key instead of click

V

vijit prabhu

hi!
m using VB 2008.
i created a button and wants that the code linked with the button when i move my mouse over the button and press a key other than enter or clicking. say i press up arrow.
how this can be done, also how can i do this if i waana press enter...

need some urgent help...

thakns vijir

Submitted via EggHeadCafe - Software Developer Portal of Choice
Custom Favorites Web Site with MongoDb and NoRM
http://www.eggheadcafe.com/tutorial...favorites-web-site-with-mongodb-and-norm.aspx
 
C

Cor

Very simple call the method in the click event

Click_Button1(nothing, nothing)

There are much nice alternatives but I've never seen where I needed that.

Cor

"vijit prabhu" wrote in message
hi!
m using VB 2008.
i created a button and wants that the code linked with the button when i
move my mouse over the button and press a key other than enter or clicking.
say i press up arrow.
how this can be done, also how can i do this if i waana press enter...

need some urgent help...

thakns vijir

Submitted via EggHeadCafe - Software Developer Portal of Choice
Custom Favorites Web Site with MongoDb and NoRM
http://www.eggheadcafe.com/tutorial...favorites-web-site-with-mongodb-and-norm.aspx
 

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