Results 1 to 2 of 2

Thread: Enter task and Command button

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Enter task and Command button

    If I have a text field and a command button, how do I declare that when the Enter task is done the command button should be activated?

  2. #2
    nullus
    Guest
    Enter task? you mean when someone presses Enter?

    VB Code:
    1. Private Sub Text1_KeyPress(KeyAscii As Integer)
    2.   If (KeyAscii = 13) Then
    3.     Command1.Enabled = True
    4.   End If
    5. End Sub

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