473,563 Members | 2,696 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1995
"DrifterKon a" <dr*********@ya hoo.comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.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)
"DrifterKon a" <dr*********@ya hoo.comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.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("Pu t the name of your tab control here").SetFocus

Aug 1 '06 #6
Thank you all. That helped very much. The me.tabcontrolna me.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
1354
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 form, which is posted to the server when the user is finished. The next stop for the user might be a return to a list, or it might be to refresh the...
2
7071
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 startIt()is defined then a function stopIt() Then two buttons, Start and Stop, which when pressed call the relevant functions
3
2931
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 bloating the size of my page, especially in my menu. I am aware the "default" language of the page is the first defined script, but I can not...
7
22679
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 be appreciated. Thanks, Brian
3
1984
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 text. Is it possible to access in this way "string variable".getElementByID() somehow? Thank you.
3
2082
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 that. I have tried making a very basic test rig to isolate the problem, and have illustrated it below. For reference, this is using .NET 2 and Visual...
3
2902
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 of code that does this, but it's made for only one mp3 file. I don't know enough about javascript to customize the code myself. I know there...
16
4030
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 I want to do is get an executable and writable page of memory, so that I can (say) write machine code to it and then switch %eip (the instruction...
18
3953
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 of information that I don't need. Using the PHP function strip_tags I've ended with the text below and from the remaining HTML code, I'd like to...
0
7885
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7948
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6250
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
923
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.