How do you use the enter keypress to capture entries using single TextBox to capture multiple entries?
enter keypress to capture entries
Collapse
X
-
can you elaborate your question ? one to many?
#example
Code:textbox1.text.value = textbox2.value,textbox3.value?
-
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.
Anyways...
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.
-FrinnyLast edited by Frinavale; Nov 20 '12, 02:31 PM.Comment
Comment