textbox query

G

Guest

hi,
i've a textbox on my form
whenever user presses ENter key, i want to capture the entire text...
how can i acheive it
 
B

Bryan Phillips

Add an event handler for the textbox's keydown event. Then, use the e
parameter to determine if the enter key was pressed. If it was pressed,
read the value of the textbox's text property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top