|
-
Nov 4th, 1999, 01:57 AM
#1
Thread Starter
Junior Member
OK, anyone know how i can code so i can do the following:
I have a text box that the user enters info in. Instead of making a command button for the user to activate the event procedure, i want the user to press enter, and that event procedure will be activated. How do i do this?? Thanks in advance.
-
Nov 4th, 1999, 02:09 AM
#2
Put this on Key_Press event of the Textbox:
Code:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn Then
'Call your procedure here...
End If
End Sub
Regards,
------------------
Serge
Software Developer
[email protected]
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|