By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,475 Members | 954 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,475 IT Pros & Developers. It's quick & easy.

enter keypress to capture entries

P: 2
How do you use the enter keypress to capture entries using single TextBox to capture multiple entries?
Nov 20 '12 #1
Share this Question
Share on Google+
2 Replies

P: 75
can you elaborate your question ? one to many?

Expand|Select|Wrap|Line Numbers
  1. textbox1.text.value = textbox2.value,textbox3.value?
Nov 20 '12 #2

Expert Mod 5K+
P: 9,731
If you are implementing a Win Forms application, handle the TextBox KeyUp Event.

If this is a WPF or Silverlight application, handle the WPF/Silverlight TextBox KeyUp Event

If this is an ASP.NET application, you could set the TextBox's AutoPostback property to True and implement a method that handles the TextBox TextChanged Event. But I would be more inclined to find a JavaScript solution instead.


In the method that handles that event, check if the enter key was hit. If it was hit, then add your entry; otherwise do nothing.

Nov 20 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.