CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Extended keys

  1. #1
    Join Date
    Aug 1999
    Location
    Toluca, Mexico
    Posts
    8

    Extended keys

    How can I read the keys like F1,F2, F3 or MoveKeys (Up, Left, Down, Right) from a Keypress method ?
    Do I need to read twice the keyascii var like C++?


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Extended keys

    take this as a starter

    private Sub Form_KeyUp(KeyCode as Integer, Shift as Integer)
    If KeyCode = vbKeyF1 then
    MsgBox "F1"
    End If
    End Sub





  3. #3
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    Re: Extended keys

    Function keys are not ascii characters but ANSII!
    With this in mind, keep going on. About cursor keys use vbKeyDown. vbKeyUp, vbKeyHome, vbKeyEnd, etc.

    Michael Vlastos
    Company MODUS SA
    Development Department
    Athens, Greece
    Tel: +3-01-9414900

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

Featured