How to assign hotkeys to buttons in VS 2005  
Author Message
procrasti





PostPosted: Visual C++ General, How to assign hotkeys to buttons in VS 2005 Top

Hi

As the header says, I am trying to assign hotkeys to my buttons in VS 2005 (I am creating VC++ MFC Applications). In the older versions I used to put the '&' key before the letter eg e&xit to make the 'x' underlined and a hotkey. Can someone point me in the right direction please. I have trawled through help for over an hour and asked all my contacts!

Thanks and regards in advance.



Visual C++3  
 
 
Mike Danes





PostPosted: Visual C++ General, How to assign hotkeys to buttons in VS 2005 Top

"In the older versions I used to put the '&' key before the letter eg e&xit to make the 'x' underlined and a hotkey"

And is there anything that stops you from doing the same thing in the current version !


 
 
Miss_T





PostPosted: Visual C++ General, How to assign hotkeys to buttons in VS 2005 Top

 

I found this issue:

I use & to indicate hotkey on, say a button text "&Browse" so that Alt+B is my hotkey.  When I run the compiled program I don't see the underlined B until I tap the Alt key.  Then the underline will appear.  The hotkey is still fully functional.

Using:

Visual Studio 2005 Version 8.0
.NET 2.0
C++ 2005


 
 
Mike Danes





PostPosted: Visual C++ General, How to assign hotkeys to buttons in VS 2005 Top

That's standard Windows behavior, it has nothing to do with Visual Studio.


 
 
procrasti





PostPosted: Visual C++ General, How to assign hotkeys to buttons in VS 2005 Top

That sounds like the solution...it is a new 'feature'!

Thanks for your help!