It used to be "After Update" in Access, but in vb.net...
After a user enters something into a textbox and presses the Enter button, I
want the focus to move to another texbox.
Which one do you use ?
And do I simply put... TextBoxtoGoTo.Focus() in that event ?
Thanks 8 4507
"Rob" <rw*****@comcast.net> schrieb: After a user enters something into a textbox and presses the Enter button, I want the focus to move to another texbox.
Which one do you use ?
And do I simply put... TextBoxtoGoTo.Focus() in that event ?
Yes, you can set the focus to a certain control by calling its 'Focus'
method.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Thanks,
But which event do I use... I do not see an "AfterUpdate" event ?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OK****************@tk2msftngp13.phx.gbl... "Rob" <rw*****@comcast.net> schrieb: After a user enters something into a textbox and presses the Enter button, I want the focus to move to another texbox.
Which one do you use ?
And do I simply put... TextBoxtoGoTo.Focus() in that event ?
Yes, you can set the focus to a certain control by calling its 'Focus' method.
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
Shouldn't the focus move when the user presses the <tab> key, rather than
the <enter> key?
I would think you should reserve action from the <enter> key to operate the
default command button.
Most Users are accustomed to the <enter> key being the 'final step' in a
data entry sequence. On the other hand, users are accustomed to using the
<tab> key to move to the next text box.
"Rob" <rw*****@comcast.net> wrote in message
news:Kc********************@comcast.com... It used to be "After Update" in Access, but in vb.net...
After a user enters something into a textbox and presses the Enter button,
I want the focus to move to another texbox.
Which one do you use ?
And do I simply put... TextBoxtoGoTo.Focus() in that event ?
Thanks
Thanks Hal,
I agree... but just for knowledge sake, which VB.net event fires the
"OnEnter" action for a text box ?
Rob
"Hal Rosser" <hm******@bellsouth.net> wrote in message
news:Qz******************@bignews4.bellsouth.net.. . Shouldn't the focus move when the user presses the <tab> key, rather than the <enter> key? I would think you should reserve action from the <enter> key to operate the default command button. Most Users are accustomed to the <enter> key being the 'final step' in a data entry sequence. On the other hand, users are accustomed to using the <tab> key to move to the next text box.
"Rob" <rw*****@comcast.net> wrote in message news:Kc********************@comcast.com... It used to be "After Update" in Access, but in vb.net...
After a user enters something into a textbox and presses the Enter button, I want the focus to move to another texbox.
Which one do you use ?
And do I simply put... TextBoxtoGoTo.Focus() in that event ?
Thanks
"Rob" <rw*****@comcast.net> schrieb: but just for knowledge sake, which VB.net event fires the "OnEnter" action for a text box ?
I suggest to read the documentation for 'Control.Enter'.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Hi Herfried,
I think I asked the wrong question... let's say the user types in a value
and presses the "Enter" button. What event is fired just after the "Enter"
button is pressed ?
I believe the Control.Enter event is fired when the user first enters a
character in the textbox.
Thanks,
Rob
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eD**************@TK2MSFTNGP14.phx.gbl... "Rob" <rw*****@comcast.net> schrieb: but just for knowledge sake, which VB.net event fires the "OnEnter" action for a text box ?
I suggest to read the documentation for 'Control.Enter'.
-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
"Rob" <rw*****@comcast.net> wrote in message
news:Kc********************@comcast.com... It used to be "After Update" in Access, but in vb.net...
After a user enters something into a textbox and presses the Enter button, I want the focus to move to another texbox.
To change focus when the Enter key is pressed, handle the KeyDown
(and/or Keypress) methods calling the [Control].SelectNextControl
method.
However, by doing so, you may be upsetting the more "natural"
flow of focus events that you would normally get in a .Net application.
I'd suggest you educate your ex-Access users to rejoin the Real
World and use the Tab key for moving around fields in their "new"
applications ;-)
HTH,
Phill W.
"Rob" <rw*****@comcast.net> schrieb: I think I asked the wrong question... let's say the user types in a value and presses the "Enter" button. What event is fired just after the "Enter" button is pressed ?
The button's 'Click' event.
I believe the Control.Enter event is fired when the user first enters a character in the textbox.
It's fired when the focus is set to the textbox.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: francisco lopez |
last post by:
ok , first of all sorry if my english is not so good, I do my best.
here is my problem:
I donīt know much javascript so I wrote a very simple one to validate
a form I have on my webpage.
...
|
by: aaj |
last post by:
Hi all
I have a small but rather annoying problem with continuos forms, and am
wondering if anyone can suggest a method of getting over it.
The front end is Access 2002 with the BE being SQL...
|
by: S P Arif Sahari Wibowo |
last post by:
Hi!
Do you know how to put a form's Access-Visual-Basic-code that will force
the form to be inserted, while the user has not type anything in the form,
without changing focus, selection, etc.?
...
|
by: Elliot M. Rodriguez |
last post by:
Is it possible to change a control's focus at runtime? I'm sure you can....
I have a form with 2 textbox controls that cause postbacks. They are located
in the middle of my form.
When a...
|
by: Justin Hoffman |
last post by:
I am new to vb.net programming and am just exploring the way databinding
works with Windows forms and am having trouble with some fairly basic
customization of data entry. The form uses the...
|
by: yawnmoth |
last post by:
Say I have two input elements and that I wanted to make it so that when
the first ones input was what it should be, the focus would
automatically be shifted to the next input element.
ie....
|
by: vivela |
last post by:
hi,
I hope you could help me out on this one,cause I have been trying for 4
days to solve it,but couldn't quite get it right: I have an ASP textbox
that should change the value in a dropdownlist....
|
by: Jon Slaughter |
last post by:
Is there any method to temporarily disable focus changing?(I assume only
method is tab or mouse?) This problem has been tieing me up for a while and
nothing seems to work. The only thing that I...
|
by: jimatqsi |
last post by:
I'm having trouble changing the focus from form to form.
I've got a big form with two smaller forms. The main form takes the left 1/3 of the screen, subform1 the upper right, and subform2 the...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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,...
| |