473,411 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

enter keypress to capture entries

How do you use the enter keypress to capture entries using single TextBox to capture multiple entries?
Nov 20 '12 #1
2 1367
lyodmichael
75 64KB
can you elaborate your question ? one to many?

#example
Expand|Select|Wrap|Line Numbers
  1. textbox1.text.value = textbox2.value,textbox3.value?
  2.  
  3.  
Nov 20 '12 #2
Frinavale
9,735 Expert Mod 8TB
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
Nov 20 '12 #3

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

Similar topics

1
by: Paul Steele | last post by:
Hi, I've got a number of textbox's on a windows form in VC++ .NET. I've got it so that when the user presses whilst in a textbox then it goes to the next tabstop. This works fine however...
2
by: Cybertof | last post by:
Hello, I want to change focus from one textbox to another next to an 'ENTER' keypress. But each time the user presses the ENTER key in a non multine textbox, the systems beeps. How to...
2
by: marcia | last post by:
How can I capture (i.e., write an event handler) that runs after I press the "Enter" key? I'd like to prevent a Web Form from being submitted when the "Enter" key is pressed following the typing...
2
by: Purvi T | last post by:
Hi, I am trying to do the enter-key capture in an aspx page. Since I wanted to use a common function in all my forms, I wrote a function as shown. I call this function on the textbox onkeydown...
15
by: Adam J. Schaff | last post by:
I have noticed that if a user closes a form via pressing return (either while the OK button has focus or if AcceptButton is set to OK for the form) then the "ENTER" keypress event fires ON THE...
4
by: alien2_51 | last post by:
I have a form with several buttons, I'd like to default to a specific button on the Enter keypress event, How would I do this...?
3
by: JAG711 | last post by:
I have 2 mdi childforms which are database input forms. Each form has the usual add/delete/edit/save buttons and a few textboxes. I capture the keypress events on the textboxes to allow only...
0
by: Draiko | last post by:
I have an application that I have created that essentially allows me to automate web page processing for my company. However, I have run into a a minor set-back that I have a temporary solution in...
1
by: Joey | last post by:
I have an asp.net 1.1/C# web form with a text box server control and one button server control. Users can type in text to search and then click the button to start the search. I want them to be...
2
by: newbiegalore | last post by:
Hello everyone I have just finished going through some tutorials on developing extensions for mozilla and have made a version of the born-geek toolbar. Being a newbie I am stuck at a relatively...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.