enter keypress to capture entries

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ochumba
    New Member
    • Nov 2012
    • 2

    enter keypress to capture entries

    How do you use the enter keypress to capture entries using single TextBox to capture multiple entries?
    Last edited by Frinavale; Nov 20 '12, 02:24 PM. Reason: Added part of the question posted in the title to the body of the thread to make the question make more sense.
  • lyodmichael
    New Member
    • Jul 2012
    • 75

    #2
    can you elaborate your question ? one to many?

    #example
    Code:
    textbox1.text.value = textbox2.value,textbox3.value?

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      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.

      -Frinny
      Last edited by Frinavale; Nov 20 '12, 02:31 PM.

      Comment

      Working...