Thanks Sergey.
>You're mistaken. The shortcut for the button is 'B' not 'ALT+B'.
>
>>
>>I have a problem where comboboxes fire shortcut keys even thought the ALT has'nt been specified by the user.
>>
>>The following has just a combo box and a button with a shortcut key of ALT + B. If you sit on the combo box and hit just B it fires the click event of the button which I really dont think it should. If I change the combo box style to not be 2 then it works ok but all my combo boxes are built from system data when the form is built so I dont really want to change it.
>>
>>Any help or advice would be appreciated.
>>
>>Many thanks
>>
>>Jon
>>
>
>>oForm = Createobject('form1')
>>oForm.Show()
>>Read Events
>>
>>DEFINE CLASS form1 AS form
>>
>>
>> DoCreate = .T.
>> Caption = "Form1"
>> Name = "Form1"
>>
>>
>> ADD OBJECT command1 AS commandbutton WITH ;
>> Top = 144, ;
>> Left = 168, ;
>> Height = 49, ;
>> Width = 133, ;
>> Caption = "\<Bob", ;
>> Name = "Command1"
>>
>>
>> ADD OBJECT combo1 AS combobox WITH ;
>> Height = 25, ;
>> Left = 84, ;
>> Style = 2, ;
>> Top = 60, ;
>> Width = 133, ;
>> Name = "Combo1"
>>
>>
>> PROCEDURE command1.Click
>> wait window "Clicked"
>> ENDPROC
>>
>>
>>ENDDEFINE
>