No actually I have made a user control whose caption is '&Clear' to make it look alike normal VB Command Button.
The user control works same as command button except for the shortcut key.
For the user control I have used a picture clip and a lable
You made an user control, and it must have the AccessKey. Does this correct?
To set access key for yor control, you must use:
UserControl.AccessKey = "C" 'or any alphabet you want
You can determine which should be the accesskey by analyze the "Caption" property of this control. The accesskey must be the Character following the Ampersand symbol.
The event will be fired when the accesskey press must be definition in
Private Sub UserControl_AccesskeyPressed(keyAscii As Interger)
'example
Call UserControl_Click
End Sub
Private Sub UserControl_Click()
'do smthing else
RaiseEvent Click
End Sub