Click to See Complete Forum and Search --> : Button hotkeys


Andrian Zubovic
December 10th, 1998, 07:13 PM
I made a button Active-X control in VB 5.0. It has some extra features, like a LED, etc. Since it is based on VB CommandButton I can specify a hotkey by putting an ampersand (&) in front of the desired letter in the Caption property. When I test this control in a VB form the hotkey works fine. However if I make a dialog in VC++ 5.0 and use my control the hotkey doesn't work. How do I make the hotkey work in VC++ as well? Is this problem inherent to the control, or is it something to do with VC++. The reason I ask is that VC++ has its own button control in which I can specify a hotkey and everything works fine. So what is going on here?


Regards,

Andrian