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

Tabbing to next tab

Hi

Is it possible that when a user is past a field on one tab of the tab
control it automatically switches to the second tab to save manually
changing the tab when entering data?

Thanks

Regards
Nov 12 '05 #1
2 3708
"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:40***********************@news-text.dial.pipex.com...
Hi

Is it possible that when a user is past a field on one tab of the tab
control it automatically switches to the second tab to save manually
changing the tab when entering data?


Here is what I recommend...

Place a tiny (but visible=true) TextBox on the first TabPage and make it
last in the TabOrder. In the GotFocus event of that TextBox have code that
sets Focus to desired control on second TabPage. When you tab out of the
last "real" control on page 1 you will automatically be taken to the first
control on page 2.

This is better than using the Exit or LostFocus event of the last control
on page 1 because it only takes you to page two if you leave that last
control on page 1 via the <Tab> or <Enter> keys. If the user uses their
mouse or Shift-Tab you won't override their action by taking them somewhere
they don't want to go.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #2
On the last control of each tab, write an event routine for the Exit
event with
code such as:

Me.theTab.value = Me.theTab.value + 1

This will take the user to the first control on the next tab.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3

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

Similar topics

145
by: David MacQuigg | last post by:
Playing with Prothon today, I am fascinated by the idea of eliminating classes in Python. I'm trying to figure out what fundamental benefit there is to having classes. Is all this complexity...
3
by: Warmonkey | last post by:
Hi there, I have been frustrated by the 'next record' problem when a user tabs off the last control on a form. I have tried a couple of the suggestions listed on the newsgroup, but so far...
3
by: Richard | last post by:
Tabbing from the first control on a form always sends me to IE's Address Bar instead of the next control, no matter how I set the TabIndex property for the controls. Why is this happening? For...
1
by: Tom | last post by:
A dumb question: Exactly how does tabbing work in an ASP.NET form in the browser? Does it work the same was as a Windows Forms form does? I have a rather complicated ASP form (that consists of...
0
by: Mike Walters | last post by:
We are auto tabbing from one control to the next after max length is reached, but when within a groupbox tabbing remains within itself. when we are at the max length and use the backspace or Del...
0
by: Nick | last post by:
Hi, This is a very common issue. I have a read only Windows Application datagrid, on which i want to prevent the tabbing between the columns and rows. What needs to happen is this: When i...
0
by: Nick | last post by:
Hi, I have a requirement to build a mouse free windows application and have to hence rely heavily on the tabbing indices. However, I'm facing some issues when the tab goes to a datagrid. It...
5
by: Sam | last post by:
I have some required fields on a form. I'm checking these fields in the Form_BeforeUpdate sub. When just clicking on the fields and then trying to go to the next record by clicking on the little...
6
by: Doug Bell | last post by:
Hi I have a DataGrid with some hidden columns and also some read Only and some ComboBox Columns. Sandard Tabbing through the Datagrid sees the focus go to the hidden columns requiring further...
10
by: jp | last post by:
I have multiple PMW widgets (EntryFields, ScrolledField etc), how can I skip over these widgets when using the tab key? Thank you, John
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: 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
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
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
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.