473,406 Members | 2,619 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,406 software developers and data experts.

Using the TAB ORDER with ENTER KEY ?

Hi, i use the TAB ORDER to move focus from one control to
another.
But it functions only pressing the TAB KEY.
To move focus using the ENTER KEY i use the KEY PRESS
method in all the objects of the Form.
There is a way to use the ENTER KEY with TAB ORDER without
the KEY PRESS method???
Thanks.

Nov 15 '05 #1
2 2525
Thomaz,

What you will have to do is capture the keypress on the form. Then,
when you have that, if the keypress is an enter key, you can set the focus
on the control on the form that you want it to go to (using the
GetNextControl method on the Control class).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"thomaz" <su***@nce.ufrj.br> wrote in message
news:05****************************@phx.gbl...
Hi, i use the TAB ORDER to move focus from one control to
another.
But it functions only pressing the TAB KEY.
To move focus using the ENTER KEY i use the KEY PRESS
method in all the objects of the Form.
There is a way to use the ENTER KEY with TAB ORDER without
the KEY PRESS method???
Thanks.

Nov 15 '05 #2
Nicholas;

thanks for your replay to my question

I will try to use the GetNextControl method.

Thomaz
-----Original Message-----
Thomaz,

What you will have to do is capture the keypress on the form. Then,when you have that, if the keypress is an enter key, you can set the focuson the control on the form that you want it to go to (using theGetNextControl method on the Control class).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"thomaz" <su***@nce.ufrj.br> wrote in message
news:05****************************@phx.gbl...
Hi, i use the TAB ORDER to move focus from one control to another.
But it functions only pressing the TAB KEY.
To move focus using the ENTER KEY i use the KEY PRESS
method in all the objects of the Form.
There is a way to use the ENTER KEY with TAB ORDER without the KEY PRESS method???
Thanks.

.

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Megan | last post by:
Hi- I'm creating a database of music bands with their cds and songs. I'm trying to program an SQL statement so that I can enter a string of text in a textbox, press the 'Enter' key, and have...
3
by: sck10 | last post by:
Hello, I am creating a form for users to enter information about a lab and the members of the lab. I have one form (FormView) that they use to enter information about that lab. The keyvalue is...
0
by: cameron | last post by:
I am currently writing a C++ program that has to calculate and display the monthly mortgage payment amount using the amout of the mortgage, the term, and interest rate as input by the user. Next, I...
3
by: mukeshhtrivedi | last post by:
Hi Gurus, I have created simple query as SELECT QUOTES.DATE, QUOTES.QUOTENO, QUOTES.SALESREP, QuoteItem.ITEM, QUOTES., QUOTES.CUSTOMER, QUOTES.AMOUNT, QUOTES., QUOTES.DivisionID,...
5
by: poreko | last post by:
hi guys! i am doing a bubble sort on using the C language. I have to prompt the user to enter 10 integers values of his/her choice. Store these values into an array in the order the user entered...
1
by: aRTx | last post by:
<? /* Directory Listing Script - Version 2 ==================================== Script Author: Artani <artan_p@msn.com>. www.artxcenter.com REQUIREMENTS ============ This script requires...
2
by: dbstrat | last post by:
Hi. I have 3 tables that I need to display on a master-child form/subform. Think of it as Orders and Order Details. The tables are Orders OrderDetails VendorItems
14
by: xtheendx | last post by:
I am writing a gradbook type program. It first allows the user to enter the number of students they want to enter. then allows them to enter the first name, last name, and grade of each student. The...
5
Chrisjc
by: Chrisjc | last post by:
Good afternoon, I am seeking some php configuration help. Here is the run down I am running Windows server 2003 and IIS V6.0 I have never had issues before until now. I have Symantec Antivirus 11.0...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.