Results 1 to 2 of 2

Thread: Raise Events

  1. #1

    Thread Starter
    Hyperactive Member Dorothy's Avatar
    Join Date
    Feb 2001
    Posts
    310

    Question Raise Events

    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?

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Code:
    Option Explicit
    
    Public Event UpArrowKeyPressed()
    
    Private Sub UserControl_KeyUp(KeyCode As Integer, Shift As Integer)
        If KeyCode = vbKeyUp Then RaiseEvent UpArrowKeyPressed
    End Sub
    -= a peet post =-

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width