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

Enter key

How do you set the enter key to move from one field to
another field?
Nov 20 '05 #1
18 1258
"Claudie Bouzy" <an*******@discussions.microsoft.com> schrieb
How do you set the enter key to move from one field to
another field?


Set the Form's keypreview property = True and handle the Form's keypress
event.
--
Armin

Nov 20 '05 #2
"Armin Zingler" <az*******@freenet.de> schrieb
"Claudie Bouzy" <an*******@discussions.microsoft.com> schrieb
How do you set the enter key to move from one field to
another field?


Set the Form's keypreview property = True and handle the Form's
keypress event.


I forgot: In the event handler, call SelectNextControl:
Private Sub Form1_KeyDown( _
ByVal sender As Object, _
ByVal e As System.Windows.Forms.KeyEventArgs) _
Handles MyBase.KeyDown

If e.KeyCode = Keys.Enter Then
Me.SelectNextControl( _
Me.ActiveControl, True, True, True, True _
)
e.Handled = True
End If

End Sub
--
Armin

Nov 20 '05 #3
* "Claudie Bouzy" <an*******@discussions.microsoft.com> scripsit:
How do you set the enter key to move from one field to
another field?


Why use non-standard behavior?!

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
Hi Herfried,

It's actually standard in many systems for the Enter key to move from
field to field. (and has been for longer than you've been alive!)

<Now> who's being Windows-centric, lol. ;-))

Regards,
Fergus
Nov 20 '05 #5
* "Fergus Cooney" <fi******@tesco.net> scripsit:
It's actually standard in many systems for the Enter key to move from
field to field. (and has been for longer than you've been alive!)
We are talking about development of applications using _Windows_ forms.
<Now> who's being Windows-centric, lol. ;-))


ROFL

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #6
Cor
Hi Fergus,

But I can remember me long discussions with programmers who said that was
not nice.

It was easy to overcome of course, you went with such a program to a user
and asked him and what do you think?

:-)

Cor
Nov 20 '05 #7
Hi Herfried,

?? > It's actually standard in <many systems> for the Enter key to move
?? > from field to field. (and has been for longer than you've been
alive!)
??
?? We are talking about development of applications using _Windows_ forms.

And in many companies the 'System' does the walking while Windows is
merely the pavement.

(Although I suppose maybe they should realise that Windows can also be a
travellator, which allows the system to merely stand upright and be carried
about.)

Regards,
Fergus

ps ?? Lol.
Nov 20 '05 #8
Hi Cor,

The User is King!! **

Regards,
Fergus

** especially when it's me! ;-)
Nov 20 '05 #9
* "Fergus Cooney" <fi******@tesco.net> scripsit:
We are talking about development of applications using _Windows_ forms.
And in many companies the 'System' does the walking while Windows is
merely the pavement.


;-)
ps ?? Lol.


ROFL

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #10
It is much faster for many people(mainly ones that use Financial
Applications) to use just the Number Pad than the full keyboard. Since there
are not many keyboards that sport a Tab key on the Num Pad, Users expect the
Software to adapt !!
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bm************@ID-208219.news.uni-berlin.de...
* "Claudie Bouzy" <an*******@discussions.microsoft.com> scripsit:
How do you set the enter key to move from one field to
another field?


Why use non-standard behavior?!

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Nov 20 '05 #11
Actually they're not... Why's that? Because you'd never find two that agree!
;o)

User Interfaces are designed as a unwritten standard of doing things. In the
last company I was in they went off in all sorts of tangents, basically
rewriting the event handling, key presses, etc for no apparent real reason
other than they wanted to do it differently. Different from the decided
Windows UI standard will tend to confuse, more than it would be found to be
practical.

It's like creating a COM object and deciding you don't really see the point
to AddRef and Release, so you just return zero. Yep, I've seen that done?!?!

"Fergus Cooney" <fi******@tesco.net> wrote in message
news:eb**************@TK2MSFTNGP10.phx.gbl...
Hi Cor,

The User is King!! **

Regards,
Fergus

** especially when it's me! ;-)

Nov 20 '05 #12
Hi Daniel,

~~ Different from the decided Windows UI standard will tend
~~ to confuse, more than it would be found to be practical.

Aye, 'tis often the way. But they pays the piper, so they chooses the
music. But most want you to tell them everything - including what they want -
you know, the mind-reading bit!

Skipping on AddRef and Release and returning zero? I see no problem. The
user switches off at the end of the day, so I just put 1GB RAM in my minimum
requirements spec. If they kick up a fuss about that, I arrange for my app to
have a GPF requiring a reboot - sometime around lunchtime.

Regards,
Fergus
Nov 20 '05 #13
What could be more "mind-reading" than assuming everyone has a Gig of ram?
;o)

"Fergus Cooney" <fi******@tesco.net> wrote in message
news:ur*************@TK2MSFTNGP11.phx.gbl...
Hi Daniel,

~~ Different from the decided Windows UI standard will tend
~~ to confuse, more than it would be found to be practical.

Aye, 'tis often the way. But they pays the piper, so they chooses the
music. But most want you to tell them everything - including what they
want -
you know, the mind-reading bit!

Skipping on AddRef and Release and returning zero? I see no problem. The
user switches off at the end of the day, so I just put 1GB RAM in my minimum
requirements spec. If they kick up a fuss about that, I arrange for my app
to
have a GPF requiring a reboot - sometime around lunchtime.

Regards,
Fergus

Nov 20 '05 #14
Hi Daniel,

No, no. It wouldn't do to assume that there'll be a Gig.
I demand and command!!. ;-))

Regards,
Fergus
Nov 20 '05 #15
OH WELL, that's completely different! ;-)

You sound more and more like Microsoft all the time, I think you're
infected... demanding stuff on us.

"Fergus Cooney" <fi******@tesco.net> wrote in message
news:ev**************@TK2MSFTNGP09.phx.gbl...
Hi Daniel,

No, no. It wouldn't do to assume that there'll be a Gig.
I demand and command!!. ;-))

Regards,
Fergus

Nov 20 '05 #16
* "Nice Chap" <Ni******@PlasmaDyne.com> scripsit:
It is much faster for many people(mainly ones that use Financial
Applications) to use just the Number Pad than the full keyboard. Since there
are not many keyboards that sport a Tab key on the Num Pad, Users expect the
Software to adapt !!


Thanks. I only wanted to know reasons that make sense (like yours).

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #17
Hi Daniel,

ROFL. Something in the air, maybe. ;-))

Now if you'll just sign this EULA that gives me complete control to change
any of the wording in your posts as I see fit..... mmwaahaahaa [evil grin and
maniacal laughter]

Regards,
Fergus

This text is readright, copyright, leftandright and quite right.
This posting is provided "AS IS" with no warranties.
No liability will be accepted for anything.
Any and all words or meaning construed herein should not be
taken as representative of the beliefs or values of the author.
Nov 20 '05 #18
Cor
Hi Herfried,

Some are on a higher level yes.

But in OE is the Enter key as well to another row,

(Stupid me, you don't have OE)

Thanks. I only wanted to know reasons that make sense (like yours).


:-))

Cor
Nov 20 '05 #19

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

Similar topics

5
by: junk mail | last post by:
My friend is trying to code a small c program where he wants to force the user to press enter and only enter to continue. Currently he is using getchar() with a loop but you can type any number...
5
by: ewillyb | last post by:
Hi, ASP.NET has some interesting behavior when the user hits the Enter key. If there are multiple ASP:Buttons (rendered as HTML submits) on the form, when the user hits enter, the first button's...
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...
6
by: Clark Sann | last post by:
Can someone help me understand what object should be used as the lock object? I've seen some programs that use Monitor.Enter(Me). Then, in those same programs, they sometimes use another object. ...
7
by: Marc | last post by:
Hi, I want my user to be able to rename a button control by selcting rename from a menu. This then opens a text box in which to enter the new name in. I want the button control to...
18
by: Zytan | last post by:
I want the same function to be run whether you press Enter or double click the listbox. It seems really verbose to write both handlers to both events everytime, even if they both call the same...
2
by: JWest46088 | last post by:
I want the user to enter information, such as names, and then I want to ask them after they entered the first name if they want to enter another name. How would I do that? This is what I have so...
7
by: Rotsey | last post by:
Hi, I am having a problem trying to select an item with the enter key. I want to work the combo with the keyboard. So when I use the down arrow to browse the list I want to then hit the...
24
by: MichaelK | last post by:
Who knows how to prevent submitting a form on the press Enter button before all fields on the form are filled up. People just enter the first field hit Enter and it submits the form and doing...
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
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: 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,...
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,...

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.