Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Text box -> enter -> execute proc
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Justin_




PostPosted: Thu Jan 19, 2006 10:52 am   Post subject: Text box -> enter -> execute proc

How can I make it perform a procedure when a person hits enter in a text box?
Sponsor
Sponsor
Sponsor
sponsor
pavol




PostPosted: Thu Jan 19, 2006 12:03 pm   Post subject: (No subject)

under the textbox_keypress procedure or which ever one has KeyAscii as a parameter you could wite the following code:
code:
If KeyAscii = 13 (which is the ascii value for enter) Then
    Call whatever
End If
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: