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

Tabbed form question.

Ron
Hi all,

Is there any way to make a particular tab have the focus without actually
clicking on it? I know there's a On Mouse Move, but if I put in code to
have that specific tab receive the focus when the mouse moves over the name,
then moving the mouse anywhere on that entire tab (not just it's name) makes
the screen flicker. I'm assuming it's making that tab the active one with
every move and that's causing the screen flicker.

Do I HAVE to force the user to "click" on the tab or is there another way?

TIA
ron
Apr 11 '06 #1
4 1625
Ron wrote:
Hi all,

Is there any way to make a particular tab have the focus without
actually clicking on it? I know there's a On Mouse Move, but if I
put in code to have that specific tab receive the focus when the
mouse moves over the name, then moving the mouse anywhere on that
entire tab (not just it's name) makes the screen flicker. I'm
assuming it's making that tab the active one with every move and
that's causing the screen flicker.
Do I HAVE to force the user to "click" on the tab or is there another
way?
TIA
ron


If you programatically set focus to any control on a particular TabPage then
that TabPage will be brought to the front. Alternatively, you can set the
TabControl's value property to the index of the page you want (they start at
zero). The line below sets the TabControl to the third page.

Me.TabControlName.Value = 2

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Apr 11 '06 #2
Ron

"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:1R*****************@newssvr11.news.prodigy.co m...
Ron wrote:
Hi all,

Is there any way to make a particular tab have the focus without
actually clicking on it? I know there's a On Mouse Move, but if I
put in code to have that specific tab receive the focus when the
mouse moves over the name, then moving the mouse anywhere on that
entire tab (not just it's name) makes the screen flicker. I'm
assuming it's making that tab the active one with every move and
that's causing the screen flicker.
Do I HAVE to force the user to "click" on the tab or is there another
way?
TIA
ron


If you programatically set focus to any control on a particular TabPage
then that TabPage will be brought to the front. Alternatively, you can
set the TabControl's value property to the index of the page you want
(they start at zero). The line below sets the TabControl to the third
page.

Me.TabControlName.Value = 2

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com

Thanks for the attempt at helping, but I don't see how this answers my
question.

Again, is there a way to allow the user to simply pass over the tabcontrol
and have it change the page to that tab? Similar to the way the ControlTip
Text is displayed without having to click on the tab (it appears after a
moment if the pointer is left on the tab rather than having to click it for
it to appear). Similar to the way all the selections appear on a toolbar
once the first one is clicked and you move across the toolbar to the other
selections.

ron
Apr 12 '06 #3
Ron wrote:
"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:1R*****************@newssvr11.news.prodigy.co m...
Ron wrote:
Hi all,

Is there any way to make a particular tab have the focus without
actually clicking on it? I know there's a On Mouse Move, but if I
put in code to have that specific tab receive the focus when the
mouse moves over the name, then moving the mouse anywhere on that
entire tab (not just it's name) makes the screen flicker. I'm
assuming it's making that tab the active one with every move and
that's causing the screen flicker.
Do I HAVE to force the user to "click" on the tab or is there
another way?
TIA
ron
If you programatically set focus to any control on a particular
TabPage then that TabPage will be brought to the front. Alternatively,
you can set the TabControl's value property to the
index of the page you want (they start at zero). The line below
sets the TabControl to the third page.

Me.TabControlName.Value = 2

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com

Thanks for the attempt at helping, but I don't see how this answers my
question.


Sorry, I thought the *core* question was...
Is there any way to make a particular tab have the focus without
actually clicking on it?


....which is what I answered. I have no idea how to do the "hover over it
and change tabs" thing. All Access has is MouseMove which is not nearly as
nice to use as the MouseOver events that other environments have.

You could set TabStyle to None, provide your own labels or buttons for
changing the page using the methods I mentioned, and then use the MouseMove
event of those labels/buttons. The actual "tab" portion of a TabPage is not
a separate object that you can interact with (other than with the mouse).

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


Apr 12 '06 #4
Ron

"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:Kx******************@newssvr25.news.prodigy.n et...
Ron wrote:
"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:1R*****************@newssvr11.news.prodigy.co m...
Ron wrote:
Hi all,

Is there any way to make a particular tab have the focus without
actually clicking on it? I know there's a On Mouse Move, but if I
put in code to have that specific tab receive the focus when the
mouse moves over the name, then moving the mouse anywhere on that
entire tab (not just it's name) makes the screen flicker. I'm
assuming it's making that tab the active one with every move and
that's causing the screen flicker.
Do I HAVE to force the user to "click" on the tab or is there
another way?
TIA
ron

If you programatically set focus to any control on a particular
TabPage then that TabPage will be brought to the front. Alternatively,
you can set the TabControl's value property to the
index of the page you want (they start at zero). The line below
sets the TabControl to the third page.

Me.TabControlName.Value = 2

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com

Thanks for the attempt at helping, but I don't see how this answers my
question.


Sorry, I thought the *core* question was...
Is there any way to make a particular tab have the focus without
actually clicking on it?


...which is what I answered. I have no idea how to do the "hover over it
and change tabs" thing. All Access has is MouseMove which is not nearly
as nice to use as the MouseOver events that other environments have.

You could set TabStyle to None, provide your own labels or buttons for
changing the page using the methods I mentioned, and then use the
MouseMove event of those labels/buttons. The actual "tab" portion of a
TabPage is not a separate object that you can interact with (other than
with the mouse).

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com

Hi Rick,

That last suggestion did the trick. I even added changes in backcolor and
raised/sunken special effects to mimic the tab controls. I left the
original size of my tabcontrol page the same and set the tabstyle to none
and to modify all the stuff on the different tabpages all I have to do is
just move my new labels out of the way, put the tabstyle back to buttons and
there they are. Great! Strange, how I can add that type of functionality to
labels and Microsoft gives us this very crippled tabcontrol that doesn't
even work like the rest of their controls (toolbars, etc).

Anyway, works like a charm so off I go finding my next user friendly
attribute I want to add.

Thanks bunches!
ron
Apr 12 '06 #5

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

Similar topics

3
by: David | last post by:
I have a problem that I cannot delete components that are placed on a Tabbed page in Visual Basic.Net 2003. (OS = Windows 2000 Professional) The form uses a Tab Control with several pages. I have...
14
by: Mac via DotNetMonster.com | last post by:
Hi all, As some of you would know from my previous posts that I am rewriting our Unix based system into .Net with a MDI interface. Recently I have added a tab control to the top of the MDI...
4
by: Martin | last post by:
Hi all! As a preparation of a conversion from VB6 to VB2005 I'm playing around with VB2005. One of the first things that strike me is the user-interface. In all documentation Microsoft keeps...
3
by: kev | last post by:
Hi folks, Firstly, a great thanks to all members of this group who has been of great help to me. Due to your help, i have been able to proceed with my project. Now, i have another...
3
by: kev | last post by:
Hello, I posted a question a while ago on tabbed pages, how to set it to invisible when the text box is empty.It was answered by Rick and the code ran perfectly. However, i tried using the same...
0
NeoPa
by: NeoPa | last post by:
Originally posted by Missinglinq: The first thing to remember is that Tabbed Pages are all part of a single form; think of it as a really long form turned on its side and folded on itself. Because...
11
by: AndyM | last post by:
Hi, I have a curious problem that is causing me large amounts of grief and is steadily turning me grey. Hopefully you guys can help. I have a Master table that contains a CustomerID (as well as...
1
by: bbatson | last post by:
Hello, I've recently created a tabbed form. The forms within the tabbed form have command buttons that create reports based on queries that are driven by the forms (based on the !! setup). The...
2
by: bbatson | last post by:
Hello, I can't seem to figure out how to prevent a tabbed form from changing colors toward the bottom half of the form. See image below: http://img236.imageshack.us/img236/8652/postbz5.jpg ...
19
by: hedges98 | last post by:
Sorry for the mouthful of a title! Basically, I have a form with tabbed controls (Personal/Contact Details, Referral Information, Case Info/Status etc.) and I want to add a tabbed control form...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.