Results 1 to 2 of 2

Thread: Create an event?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Post

    I need to create a checkbox_keydown event that holds "keycode" as one of it's parameters.As it is now, VB only gives me "keyascii" as an option.I've got to detect "VBKeyF1" on the keydown so I can set focus so I can get Help to fire correctly then release the focus.No other event can help.This is my last shot to make F1 fire correctly.Please help if this can be done or tell me if it can't.
    Joey O.

  2. #2
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    If everything else fails....
    set the keypreview of your form to true and use the form_keydown event...
    If KeyCode = vbKeyF1 And ActiveControl.Name = "MyCheckBox" Then
    ' do something....
    End If

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