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

How do you make the page tab the first tab stop?

I have a form with 4 pages. I'm not sure of the correct name, but I
will refer to the tabs at the top of the form that list the names of
the four pages as the "page tabs".

When the form opens, the body of the form automatically scrolls down to
the first tab stop on the form. This causes the body of the form to
scroll down so far that the page tabs are no longer viewable. That is
undesirable for two reasons. First, if a user wants to click on a page
tab to navigate to another page, they have to scroll up first. Second,
some new users may not recognize the scroll bar and may not realize
that there are other pages available.

I notice that after I tab through the last tab stop on the page, the
tab goes back up to the top and rests on the actual page tab.

So I looked at the tab order to see if the page tab was listed at the
bottom, thinking that I could just move it to the top. However, it was
not listed; nor could I find any tab stop properties for the page tab
itself.

So my question is...
Is there a way to set the page tab to be the first tab stop on the
page?
Alternatively...
Is there a different way to set a property on the form or the page so
that when the form opens, all of the tabs for all of the different
pages are viewable at the top?

Aug 1 '06 #1
6 1979
"DrifterKona" <dr*********@yahoo.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
>I have a form with 4 pages. I'm not sure of the correct name, but I
will refer to the tabs at the top of the form that list the names of
the four pages as the "page tabs".

When the form opens, the body of the form automatically scrolls down to
the first tab stop on the form. This causes the body of the form to
scroll down so far that the page tabs are no longer viewable. That is
undesirable for two reasons. First, if a user wants to click on a page
tab to navigate to another page, they have to scroll up first. Second,
some new users may not recognize the scroll bar and may not realize
that there are other pages available.

I notice that after I tab through the last tab stop on the page, the
tab goes back up to the top and rests on the actual page tab.

So I looked at the tab order to see if the page tab was listed at the
bottom, thinking that I could just move it to the top. However, it was
not listed; nor could I find any tab stop properties for the page tab
itself.

So my question is...
Is there a way to set the page tab to be the first tab stop on the
page?
Alternatively...
Is there a different way to set a property on the form or the page so
that when the form opens, all of the tabs for all of the different
pages are viewable at the top?
One of the primary reasons to use tab pages is so that the total size of the
form can be kept small enough so that scrolling is not necessary at all. I
would resize your form so that scrolling does not happen regardless of which
control has focus.
Aug 1 '06 #2
Unfortunately, that is not an option in this case. All data is grouped
together according to category, so all controls that are on each page
need to stay on their respective pages. So with that in mind...

Is there a way to set the page tab to be the first tab stop on the
page?
Alternatively...
Is there a different way to set the form or the page so that when the
form opens, all of the tabs for all of the different pages are viewable
at the top?

Aug 1 '06 #3
The tab control is in the tab order of the detail section.

You are probably look at the tab order of the controls
on a page.

The tab order of the pages is the page order.

But this will not solve your problem. If you want the tabs
to have focus at startup, your problem is not tab order within
a section. Your problem is that the wrong section has focus.

There is no 'focus priority' setting. If you wish to
set focus away from the first control on the first page
in the detail section, you need to use a SetFocus command
in your form Load event.

me.mytabcontrol.setfocus

(david)
"DrifterKona" <dr*********@yahoo.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
>I have a form with 4 pages. I'm not sure of the correct name, but I
will refer to the tabs at the top of the form that list the names of
the four pages as the "page tabs".

When the form opens, the body of the form automatically scrolls down to
the first tab stop on the form. This causes the body of the form to
scroll down so far that the page tabs are no longer viewable. That is
undesirable for two reasons. First, if a user wants to click on a page
tab to navigate to another page, they have to scroll up first. Second,
some new users may not recognize the scroll bar and may not realize
that there are other pages available.

I notice that after I tab through the last tab stop on the page, the
tab goes back up to the top and rests on the actual page tab.

So I looked at the tab order to see if the page tab was listed at the
bottom, thinking that I could just move it to the top. However, it was
not listed; nor could I find any tab stop properties for the page tab
itself.

So my question is...
Is there a way to set the page tab to be the first tab stop on the
page?
Alternatively...
Is there a different way to set a property on the form or the page so
that when the form opens, all of the tabs for all of the different
pages are viewable at the top?

Aug 1 '06 #4
I apologize, I'm quite new to this. You said...

There is no 'focus priority' setting. If you wish to
set focus away from the first control on the first page
in the detail section, you need to use a SetFocus command
in your form Load event.

me.mytabcontrol.setfocus

So I went to the form, selected design view, clicked Edit, then Select
Form.
I then clicked View then clicked Properties.
I went down to On Load in the form properties box then pasted in
me.mytabcontrol.setfocus
I saved and tested. I got an error message.

So I tried building an expression and building a macro, but those
didn't work either.
I know I'm not doing something right. I tried a few different ways,
but I'm not getting it. Could you help me with the steps?

I appreciate it very much.

Aug 1 '06 #5
What's the name of your tab control? Did you modify the code at all?

Me.Controls("Put the name of your tab control here").SetFocus

Aug 1 '06 #6
Thank you all. That helped very much. The me.tabcontrolname.setfocus
worked. I didn't understand at first, but then realized that had to go
in the VB code via the code builder. It works like a charm. Thanks
again for all your help.

Aug 3 '06 #7

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

Similar topics

1
by: CB | last post by:
I have what must be a very common design issue in web programming, probably discussed 2000 times already, but I can never find any mention by searching. In particular I have a web page with a...
2
by: TonyJeffs | last post by:
I'm new to this, and stole/doctored my code from the "Ugly JavaScript Handbook" I have a slide show program. First theres stuff to set up the array, and the time between slides Then a function...
3
by: William F. Robertson, Jr. | last post by:
My problem is I routinely use both vbscript and javascript (yes, that is a problem in itself) on the same webpage. I feel placing the "javscript:" or "vbscript:" on all my client side events is...
7
by: Brian | last post by:
hello, I am looking for a way to auto refresh a web page that I created, but also let the user choose to stop the auto refresh. I can not figure out how to stop the auto refresh. Any help would...
3
by: Alex | last post by:
Hello. First, with AJAX I will get a remote web page into a string. Thus, a string will contain HTML tags and such. I will need to extract text from one <span> for which I know the ID the inner...
3
by: jonathan.beckett | last post by:
I have been experimenting with placing user controls (using Windows Forms controls) into an ASP.NET webpage - and am completely stuck. I can get a blank user control to work, but nothing beyond...
3
by: alice | last post by:
I've been trying for a long time to figure this out, to have a page with several MP3 clips, and each one having a custom start and stop button next to them to play the track. I finally found a bit...
16
by: Pie Squared | last post by:
I'm not completely sure that this is the right place to ask, but I'm doing it in C, so I'm asking, but if I'm wrong, then please don't hesitate to correct me and tell me where to post this. What...
18
by: Ecka | last post by:
Hi everyone, I'm trying to write a PHP script that connects to a bank's currency convertor page using cURL and that part works fine. The issue is that I end up with a page that includes a lot...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.