473,385 Members | 1,813 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,385 software developers and data experts.

Tab by pressing <Enter> key

bh
So, I am debating with someone about this. He believe that you can set up so
when the user presses Enter it acts just like Tab, so it follows the tab
order between text boxes in .NET just like you can do in Access. I
personally have never run across something like this, but I am still young in
the .NET Programming world so perhaps I just haven't run across it yet.
Thanks for the help.
Jul 21 '05 #1
4 1625
bh,

It could most definitly be done programatically. I don't know if there is a
config that you can change to set it up as well but I would assume (haven't
tested this) that if you capture one of the key events and set the focus to
the next control in the tab order if the key was the enter key then that
would work.

There is probably a much better way of doing it, but to satisfy if it can be
done or not I would say yes.

HTH,
Steve.

"bh" wrote:
So, I am debating with someone about this. He believe that you can set up so
when the user presses Enter it acts just like Tab, so it follows the tab
order between text boxes in .NET just like you can do in Access. I
personally have never run across something like this, but I am still young in
the .NET Programming world so perhaps I just haven't run across it yet.
Thanks for the help.

Jul 21 '05 #2
Doing this would "change" the basic concepts of your application. Most
windows application has certain behaviors, tab = move to next input box,
enter means execute the default button. You can doing anything you want but
be sure you keep within the boundaries of "how other programs" behave.

"bh" <bh@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
So, I am debating with someone about this. He believe that you can set up so when the user presses Enter it acts just like Tab, so it follows the tab
order between text boxes in .NET just like you can do in Access. I
personally have never run across something like this, but I am still young in the .NET Programming world so perhaps I just haven't run across it yet.
Thanks for the help.

Jul 21 '05 #3
bh
Thanks for the info. I do know a way of doing it, but I still battle with
how smart it would be do it. Sometimes it is better to just break people of
their bad habits that they developed using such things as Access.

"Jim Douglas" wrote:
Doing this would "change" the basic concepts of your application. Most
windows application has certain behaviors, tab = move to next input box,
enter means execute the default button. You can doing anything you want but
be sure you keep within the boundaries of "how other programs" behave.

"bh" <bh@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
So, I am debating with someone about this. He believe that you can set up

so
when the user presses Enter it acts just like Tab, so it follows the tab
order between text boxes in .NET just like you can do in Access. I
personally have never run across something like this, but I am still young

in
the .NET Programming world so perhaps I just haven't run across it yet.
Thanks for the help.


Jul 21 '05 #4
This is very much possible I use it all the time with this script

function tabOnEnter (field, evt) {
var keyCode = document.layers ? evt.which : document.all ?
evt.keyCode : evt.keyCode;
if ((keyCode != 13) && (keyCode !=9))
return true;
else {
getNextElement1(field).focus();
return false;
}
}
"bh" wrote:
Thanks for the info. I do know a way of doing it, but I still battle with
how smart it would be do it. Sometimes it is better to just break people of
their bad habits that they developed using such things as Access.

"Jim Douglas" wrote:
Doing this would "change" the basic concepts of your application. Most
windows application has certain behaviors, tab = move to next input box,
enter means execute the default button. You can doing anything you want but
be sure you keep within the boundaries of "how other programs" behave.

"bh" <bh@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
So, I am debating with someone about this. He believe that you can set up

so
when the user presses Enter it acts just like Tab, so it follows the tab
order between text boxes in .NET just like you can do in Access. I
personally have never run across something like this, but I am still young

in
the .NET Programming world so perhaps I just haven't run across it yet.
Thanks for the help.


Jul 21 '05 #5

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

Similar topics

11
by: Denis Hierstein | last post by:
I need a function, witch make a break in a for-loop and wait for the <enter>-key ... when I use Pascal I just use the Read; or the ReadLn;-function, then the loop stop as long as the user push the...
7
by: jerrygarciuh | last post by:
Hello, I have been playing with various Googled solutions for capturing the <Enter> key to suppress form submission. My first question is whether anyone has a script that works in all common...
7
by: Susan Bricker | last post by:
I know that I saw some information concerning the <shift>+<enter> combination use to bypass launching an Access mdb application and enter the Access design workspace. Would someone please direct...
6
by: tor | last post by:
Hello How can I use an other key then TAB to move from one textBox to another?? Torfinn
2
by: JP | last post by:
Hi, It's a login screen, so users enter their ID/Password and hit <ENTER> instead of clicking on Login button. But when they hit <ENTER> an Image Button gets clicked. I want to make my Login...
2
by: Rocio | last post by:
I have a aspx page, with 2 controls (ascx). Control1 contains a SEARCH button, and textbox to enter the string to search for. Control 2 contains a LOGIN button, and 2 text boxes to enter the...
4
by: peshrad | last post by:
Hi ! I'm working with Win 2K and Visual Studio 2003. I have a problem because pressing <ENTER> in a text input control causes a postback of my web form. Here comes some example code (already...
6
by: bh | last post by:
So, I am debating with someone about this. He believe that you can set up so when the user presses Enter it acts just like Tab, so it follows the tab order between text boxes in .NET just like you...
1
by: almurph | last post by:
Hi everyone, I'm a newbie to vb.net. I have written some code to detect when a user presses the down-arrow, up-arrow and enter button. Essentially the user can arrow down or up through a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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
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
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,...

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.