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

Tabbing between Tab Pages

Hi All

I have a TabControl with 2 TabPages containing textboxes. What I want to do
is, when the user fills out the last textbox on TabPage1 and then hits the
Tab key on the keyboard, I want it to jump to the first Textbox on TabPage2.
I've tried using " textbox5.focus()" but this doesn't seem to work across
TabPages. Does anyone have a solution? Thanks in advance for your reply.

--
Larry
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003
Nov 20 '05 #1
3 3376
I'd say on the Exit even of TextBox4, just use something like this:

Tab2.Select()
TextBox5.Focus()

Or, if you want to make a more generic procedure:

MyTabControl.TabPages(MyTabControl.SelectedIndex + 1).Select()
MyTabControl.SelectedTab.SelectNextControl(MyTabCo ntrol.Controls(0), True,
True, False, False)
Hope that's what you were looking for.
Mike

--
Michael Caputo
Programmer/Database Administrator
Simon Economic Systems Ltd.
847-272-7691
mi************@radarwire.com

"LarryH" <lh*************@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi All

I have a TabControl with 2 TabPages containing textboxes. What I want to do
is, when the user fills out the last textbox on TabPage1 and then hits the
Tab key on the keyboard, I want it to jump to the first Textbox on TabPage2.
I've tried using " textbox5.focus()" but this doesn't seem to work across
TabPages. Does anyone have a solution? Thanks in advance for your reply.

--
Larry
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003
Nov 20 '05 #2
Hello,

"LarryH" <lh*************@bellsouth.net> schrieb:
[Nothing new]

Please do not multipost. I already posted you a reply in the other ng.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3
Hmmm.... you're right, I tried the code myself and it didn't work. I don't
know why, and all I can think of is to try events like Validating or
Validated, but it doesn't seem like it should be necessary to do that. Now
you have my curiousity piqued, so if Mr. Wagner's solution from whatever
other newsgroup you posted on works, I'd appreciate it if you'd let me know
what the trick is. Thanks.

Mike

--
Michael Caputo
Programmer/Database Administrator
Simon Economic Systems Ltd.
847-272-7691
mi************@radarwire.com

"LarryH" <lh*************@bellsouth.net> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...
Hi Mike,
Thanks for your reply.
I tried both of your suggestions in the Textbox.Leave Event Handler and
neither one works there. Am I putting this in the wrong event handler?

--
Larry

"Mike Caputo" <mi************@radarwire.com> wrote in message
news:eZ**************@TK2MSFTNGP09.phx.gbl...
I'd say on the Exit even of TextBox4, just use something like this:

Tab2.Select()
TextBox5.Focus()

Or, if you want to make a more generic procedure:

MyTabControl.TabPages(MyTabControl.SelectedIndex + 1).Select()
MyTabControl.SelectedTab.SelectNextControl(MyTabCo ntrol.Controls(0), True,
True, False, False)
Hope that's what you were looking for.
Mike

--
Michael Caputo
Programmer/Database Administrator
Simon Economic Systems Ltd.
847-272-7691
mi************@radarwire.com

"LarryH" <lh*************@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi All

I have a TabControl with 2 TabPages containing textboxes. What I want to do is, when the user fills out the last textbox on TabPage1 and then hits the
Tab key on the keyboard, I want it to jump to the first Textbox on TabPage2. I've tried using " textbox5.focus()" but this doesn't seem to work across
TabPages. Does anyone have a solution? Thanks in advance for your reply.

--
Larry
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003

Nov 20 '05 #4

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...
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...
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...
3
by: Ty | last post by:
I am creating a ASP.net project and I wanted to make it so that when the user tabs on on of my pages that they do not have to tab through some controls. Is there a way to skip controls while...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.