Results 1 to 10 of 10

Thread: push to show a msg

Threaded View

  1. #6

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    8

    Re: push to show a msg

    hi again
    Ive been playing around with the code and been trying to
    have a the vb key assigned in text box ,like i would like to change what button I want to press or even a combo box an have the key code constance in the combo box
    something like that


    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = vbKey & text1.text Then
    Frame1.Visible = True
    End If
    End Sub

    OR

    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    vbkey = Form2.Text1.Text

    If KeyCode = Form2.Text1.Text Then
    Frame1.Visible = True
    End If
    End Sub

    instead of vbkeyA the "A" would be in the textbox an i could change it to what ever i like
    any help would be great
    Last edited by whiskydrinka; Mar 25th, 2008 at 01:48 AM.

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