PDA

Click to See Complete Forum and Search --> : Raise Events


Dorothy
Jul 10th, 2001, 01:11 PM
I need to create my own event for my ActiveX controls?
Like a event onPick(my own name) which is fired when the user presses the Up arrow key?

peet
Jul 14th, 2001, 05:54 AM
Option Explicit

Public Event UpArrowKeyPressed()

Private Sub UserControl_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyUp Then RaiseEvent UpArrowKeyPressed
End Sub