Results 1 to 7 of 7

Thread: [RESSURECTED] Keypress and indicies

Threaded View

  1. #1

    Thread Starter
    Addicted Member ajames's Avatar
    Join Date
    Mar 2005
    Location
    Wales, UK
    Posts
    178

    [RESSURECTED] Keypress and indicies

    I am using this code:
    VB Code:
    1. Public Sub form_keypress(KeyAscii As Integer)
    2. If KeyAscii = Chr(97) Then
    3. Call englow_Click(11)
    4. End Select
    5. End Sub
    and "englow" has the following code:
    VB Code:
    1. Private Sub englow_Click(Index As Integer)
    2. Text1.Text = Text1.Text + englow(Index).Caption
    3. End Sub
    As you can see, there are more than one "englow" buttons. 49 of them in fact. When I press a button on my keyboard (say a, with the ascii value 97), I want it to call just a certain englow button. Is what i'm trying to do impossible, and i should change the names of the buttons, or is there a way around this?

    Thanks in advance
    Last edited by ajames; Dec 13th, 2005 at 03:54 PM.

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