f



Hide a tab on a tab control

Dear All,

I have a tab control with about 5 tabs on it.

Depending on who logs on, I want to hide one particular tab.

How do I do it?

thanks

John Fox
0
altabios (54)
9/15/2009 3:00:51 PM
comp.databases.ms-access 42670 articles. 0 followers. Post Follow

2 Replies
556 Views

Similar Articles

[PageSpeed] 3

Per John Fox:
>Dear All,
>
>I have a tab control with about 5 tabs on it.
>
>Depending on who logs on, I want to hide one particular tab.
>
>How do I do it?

Code below selects different tabs and makes some tabs invisible.

2160          With Me.tabMain
2161             If .Value = mTabMain_Page_Security Then    'If
user walking a compressed list, don't want tb jumping back to sec
if looking at docs
2162                If
..Pages(mTabMain_Page_CompanyGroupIssuer).Visible = True Then
2163                   .Value = mTabMain_Page_CompanyGroupIssuer
2164                End If
2165             End If
2169          End With

2170          With Me.tabMain
2171             .Pages(mTabMain_Page_Security).Visible = False
2172             .Pages(mTabMain_Page_Allocations).Visible =
False
2179          End With
-- 
PeteCresswell
0
PeteCresswell
9/15/2009 4:32:06 PM
Thank you - sorted!


John
(PeteCresswell) wrote:
> Per John Fox:
>> Dear All,
>>
>> I have a tab control with about 5 tabs on it.
>>
>> Depending on who logs on, I want to hide one particular tab.
>>
>> How do I do it?
> 
> Code below selects different tabs and makes some tabs invisible.
> 
> 2160          With Me.tabMain
> 2161             If .Value = mTabMain_Page_Security Then    'If
> user walking a compressed list, don't want tb jumping back to sec
> if looking at docs
> 2162                If
> .Pages(mTabMain_Page_CompanyGroupIssuer).Visible = True Then
> 2163                   .Value = mTabMain_Page_CompanyGroupIssuer
> 2164                End If
> 2165             End If
> 2169          End With
> 
> 2170          With Me.tabMain
> 2171             .Pages(mTabMain_Page_Security).Visible = False
> 2172             .Pages(mTabMain_Page_Allocations).Visible =
> False
> 2179          End With
0
altabios (54)
9/16/2009 9:44:42 AM
Reply:

Similar Artilces:

Tab control in one of the tabs of another tab control
One of my colleagues is working with a tab control. He has several tabs. He is trying to embed another tab control inside one of the tabs of the first tab control. He had placed the second tab control inside one of the tabs of the first tab control. But the problem is that the second tab control does not show up (unless one goes to the block diagram and double clicks the second tab control, only then does it shows up; when the vi is closed and reopened its again not there). I told him that I had never seen such functionality (a tab control inside another tab control) in any application but is it somehow possible. All this is required while the VI is not running and is being developed (of course it should work at run time, but this functionality must show while the VI is not running, i.e., this functionality should be non-programmatic. Is it possible. Thanks for your time. Hi rashid, yes it is possible. See the attached example. I see no problems with it.Hope it helps.Mike Untitled_LV71.vi: http://forums.ni.com/attachments/ni/170/323165/1/Untitled_LV71.vi Thanks <a href="../view_profile?user.id=88992" class="auth_text" style="font-weight: bold;" target="_blank"> MikeS81</a>! Yes you are absolutely right. Your VI is working perfectly. I wonder what has my friend done to get such behaviour as he is getting. Strange! Thanks for the help!Have a very nice day! Hi rashid, can you upload your vi, maybe someone found the proble...

Tab Events of Access Application ? (NOT Access Tab Control)
I'm trying to use the event when a person moves to a different form by clicking on the built in Access application tabs. Is there something I can reference or does it require some kind of subclassing/hook api calls? Thanks On Jul 21, 9:47=A0pm, "christianlo...@yahoo.com" <christianlo...@yahoo.com> wrote: > I'm trying to use the event when a person moves to a different form by > clicking on the built in Access application tabs. > > Is there something I can reference or does it require some kind of > subclassing/hook api calls? > > Thanks Hi Christian, You can use the OnDeactivate event. Imb. > You can use the OnDeactivate event. Hello Imb, Aha. Now I am forced to make an event for each form. Trying to automate what tab the ribbon moves to based on the access application tab. Okay, thanks. Access could use a rewrite of it's event system imho. There are no top level application events to tap into, no 'after delete' event, record saves w/ a 'dirty=true', it's all quite ridiculous. I was hoping the new table events would be the solution but they come up w/ this 'data macro' crap where there doesn't seem to be any way to call your own code on the event. Sometimes I wonder if the ms developers ever use Access. However, I love the report and form design improvements. <christianlott1@yahoo.com> wrote in message news:ba72c614-57c0-4045-9af0-3cd9734e923b@r18g2000vbs.googlegro...

Tab control within another tab control
I am creating a form with a tab control containing 10 tabs. and what I want to do is on only on of the tabs, I want a sub section of tabs. So what it ends up being is one main tab control with another tab control embedded into only one of the tab pages. The problem I am getting is when I insert the sub section tab control into one of the tabs from the main tab control, the sub section tab control appears in every tab in the main tab control. Can anyone help? What do I need to do so it only appears in one tab, not all. Thanks As you found, you cannot place a tab control on one of the pages...

tab control inside another tab control
Hi. Is it possible to put a tab control inside another tab control. I tried it several times, but for some reason this doesn't seem to work. Can someone confirm this, or tell me what the trick is. Thanks. -- Georges The only way I know to do this is to put a subform on the first tab control. Then you can put your second tab control on the subform. If you do this repeatedly, however, you will find the form loading rather slowly. HTH - Turtle "Georges Heinesch" <news@geohei.lu> wrote in message news:3fe82fb8$1_2@news.vo.lu... > Hi. > > Is it possible to...

Tab Tab
How can I direct the output from pressing tab tab to a file? Op 4 Aug 2004 12:39:13 -0700 schreef gnosis: > How can I direct the output from pressing tab tab to a file? gawk 'BEGIN {print "\t\t"}'</dev/null >file -- There's no place like 127.0.0.1 Gerard Wassink http://linux.family.filternet.nl http://freeware.family.filternet.nl Linux counter #360967, "In a world without fences, who needs gates?" gnosis wrote: > How can I direct the output from pressing tab tab to a file? I'm not sure I understand the question..... If you mean: 'put 2 TAB (0x09) characters into a text file from a command prompt', then echo -e '\t\t' >somefile or echo -e '\t\t' >>somefile If you mean: 'the output of the BASH 'TAB-TAB' "completion key combo", then no. The BASH TAB-TAB key combo is meant as input to BASH, so BASH interprets the TAB-TAB combo before you have a chance to supply any re-direct operators for the command. Regards, Larry -- Anti-spam address, change each 'X' to '.' to reply directly. ...

Vertical Tabs on Tab Control?
Hi Folks: I've used conventional horizontal tabs on one application. Now I'd like to have a row of tabs, representing each letter of the alphabet, running down the right side of a tab control. These are owner drawn tabs. I have questions. I want a single line of alphabet tabs. If the control shrinks to too small to show all of the tabs, I'd like them to display a ragged edge, and arrows in order to scroll them. Instead, multiple lines of tabs are drawn. The Resource Editor's "Tab Control Properties" window has "Multiline...

Tab Indexing in a Tab Control
Anyone know why when I set my tabs index in my tab control (I have 3 tabs on the control) the numbering gets messed up when I save the form changes? I thought each tab on the control had an independent tab index, I guess not. Marcus ****** Just a suggestion, the Tab Index for a container (Tab Page) is different than the Page Index for a Tab Control. You might be thinking that the Tab Index is related to the Tab Pages. The order of the pages is Page Index. (Right Click Page Order) The order of the controls on a page, form or other container control is Tab Index. (Right Click Tab Order) T...

tabbing order in tab controls
Hi How can I set the tabbing order of controls in a tab control on the front panel when having several other controls on the front panel. Right-click on the tab and select "Reorder controls In page" from the menu that pops up. This is not exactly what I meant. When I'm creating a local variable I can choose its destination (right-click - select item). Because there are so many I would like to reorder the tabbing order to choose the correct on the top. All this action are taken in the block diagramm. From the edit menu, select Set Tabbing order changing the tabbing order will also change the order the variables are listed when you want to list or select a local variable ...

StartFromScratch not hiding Acrobat Tab in Access 2007 database
How do I hide or turn off the "Acrobat" Tab in access 2007 using codeing in access when I start an database(.mdb) and it opens a custom form.. The "StartFromScratch" attribute/command does not hide the "Acrobat" tab. It hides all other tabs. What is the coding to use in access 2007 to hide the Acrobat Tab What is the idMSO attribute so I can showit when I need to. Thanks for any help. ...

Tab Control and Rectangle Hiding Controls
I'm trying to change the back colour of a tab control in Access 2010 by using a rectangle. I've selected the tab control (not an individual page) and pasted the rectagle (solid with required colour). I then send the rectangle to the back and then the tab control to the back. The problem is that most (but not all controls remain hidden) on each tab. Subform and list boxes are visible, but labels and text boxes aren't. I've done this before in another application, but can't remember how I did it. Any ideas? -- Bob Darlington Brisbane On Thursday, June 20, 2013 1:57:59 AM UTC-5, Bob Darlington wrote: > I'm trying to change the back colour of a tab control in Access 2010 by > > using a rectangle. > > I've selected the tab control (not an individual page) and pasted the > > rectagle (solid with required colour). > > I then send the rectangle to the back and then the tab control to the back. > > The problem is that most (but not all controls remain hidden) on each tab. > > Subform and list boxes are visible, but labels and text boxes aren't. > > I've done this before in another application, but can't remember how I did > > it. > > Any ideas? > > > > -- > > Bob Darlington > > Brisbane Not sure I understand your issue. Anyway, check in properties and set the background to transparent. ...

How to import a tab delimited text file into MS Access database
Hi, I have the following task to be done in VC++ 6.0. I have a tab delimited text file that needs to be imported into a MS Access table. The table is created and the table structure is defined using DAO methods. So now I have to fill this table with the data in the text files. For a few rows in the text file, the number of columns could be less than the number of columns in the table. Can anyone please post me the code to do this. Thanks a ton in advance. Pradeep wrote: > I have the following task to be done in VC++ 6.0. We'd be happy to give you the VBA code, but do you really want ...

tab control strict typedef hides controls
"Has the issue of no typedef tabs been resolved in LV7? I am modifying a LV61 vi and severely broke the panel trying to convert a tab to a typedef. I was able to customize, however there was a compile/save error and all the embedded controls on the tab pages became hidden and un retrievable." Jim Henderson" Zvezdana In my disgust, I had deleted all copies of the offending vi. I believe my problem must have been, primarily, a corrupted compile/save. Thanks Jim ...

Getting XP look with tabbed dialog control and tab strip control
I know how to use a manifest file to get the XP look for the Windows Common Controls 6 group of controls but I also have both the tabbed dialog and tab strip controls in my app and I want those to take on the XP look as well. Does anyone know how? Also, while I am able to get the XP look through a manifest file in my app's folder I should be able to do this without the file having to be in the app's folder. I've read it has to do with compiling with a resource file but I don't know how to do that. Can anyone offer any assistance? Thanks! ...

Tab order on multirow tab control
Is there a way to stop the default action of a multirow tab control whereby the row with focus moves to the front of the tabs? I find this behaviour annoying and confusing to the user and am at a loss as to why MS has designed their tab controls like this. Wayne wrote: > Is there a way to stop the default action of a multirow tab control > whereby the row with focus moves to the front of the tabs? I find > this behaviour annoying and confusing to the user and am at a loss as > to why MS has designed their tab controls like this. ALL multi-row tabs act this way. How else can y...

Tab control tabs dissapear when clicked
I have yet another problem with the infamous tab control in my Access 97 database. I have a form with a tab control with 4 tabs on each tab is a sub form bound to a form. When the main form loads the vertical scroll bar moves the main form down just low enough to were one can't see the tabs on the tab control. Once you scroll back to the top of the main form and click on one of the four tabs the sub form on that tab becomes visible but the same scenario as above happens. The main form vertical scroll bar once again moves down just low enough to were you can't see the tabs until ...

How can I set the tab order of text box controls on each page of a tab control?
I need to be able to select the tabbing order of individual controls on a single page of a tabbed control. How?? In LV 6.1 an up you should be ablel to right click on the edge of the tab control when the tab-page in question is selected. The bttom selcetion in the pop-up is "Reoder controls in page..." selecting this option will switch editing modes to allow you to specify the ored, just like in a cluster. I seem to remeber in older versions you had to drag the tabable controls off the tab control, specify the tabbing oder and then drag them back on. The oldest version I have on ...

Tab Control
Is there a way to lock all the items on a tab in a form without having to list each field and lock individually? I see a way to enable/ disable, but not lock. Thanks, Laura On Mar 10, 5:58=A0pm, musicloverlch <lho...@gmail.com> wrote: > Is there a way to lock all the items on a tab in a form without having > to list each field and lock individually? =A0I see a way to enable/ > disable, but not lock. > > Thanks, > Laura What I usually do is hide the tab. But if you want the user to see the data, you'll probably have to go through each control one by one and lock each. -- GL ...

Tab Control
Hi, all! &nbsp; I would like to customize Tabs on the Tab Control. More exactly - I would like to add bevels to the tabs as shown below: &nbsp; <img src="http://vi-lib.com/forForum/TabControlwithBevel.jpg"> &nbsp; Is it theoretically possible? May be&nbsp;some workarounds exists? &nbsp; with best regards, &nbsp; Andrey. Hi, TiTou, This requirement coming from corporate UI Guidelines, where shapes of Tabs strongly predefined. I can do required "skinning" for most controls which can be customezed, but unfortunately not for Tab Control... Andrey...

Change values of Tabs on Tab Control
I have a LabVIEW application where it is possible to change the language on the front panel, in connection with this I want to change the names/labels of the Tabs on a Tab Control. Is this possible? Hi Labbie, yes it is possible. See the attachment. Mike Unbenannt 1_LV80.vi: http://forums.ni.com/attachments/ni/170/311358/1/Unbenannt 1_LV80.vi Awesome all... got what i needed. &nbsp; Peace, &nbsp; Pete ...

Re: tabbing order in tab controls
Is there a way to change the tabbing order without having the order on a list or local change also? I didn't take that into account when making the program, should have ordered all the control before wiring it all up :-/ Hi leachdor,When you change the tab order of a specific control in LabVIEW, it must then re-order the other controls in order to ensure that each tab order value is only applied to one control, and that there are only as many tab stops as there are controls.&nbsp; As such, there is no way to simply re-order a single control without modifying other controls. Hi and thanks for the response. I think I may have explained the behavior i'm seeing wrong.&nbsp; Changing the tab order, you have those two little boxes the first showing the changed order number, and the black background one that shows what it was previously.&nbsp; Each time you change one, yep you have to change the order of the rest otherwise you might tab and select two fields at once!The behavior I'm not sure about though, is when I change them to the proper order on the front page, it changes my block diagram.&nbsp; For example if I have a cluster with 3 items in it, and I change the tab order of the items inside that cluster.&nbsp; Then if I had previously used an "unbundle" function prior to the tab order change, and it was all wired up with item 1 at the top, item 2 in the middle output, and item 3 as the bottom output - AFTER the change, those controls...

Tab control: How do I read the name of a selected tab??
Hello, &nbsp; I've got a tab control with 10 tabs and around 20 controls on each tab. I'm using an event structure but the amount of possible events (about 200) drives me crazy. &nbsp; Please tell me if the following is possible: &nbsp; I want to use a case structure to determine which tab was selected and start an event structure for that tab only. I'd only have 20 events now. When the tab control is pressed the event structure is killed (the while loop finishes), and the outer case structure determines what event structure&nbsp;to fire up now. Is this possible???...

Executing a Script when clicking a tab in Tab Control
Is it possible to execute a script when clicking on a tab when using the new Tab Control function in FMP8? place an invissible rectangle on the part where you want to click, define this as the button. Ursus "Steve" <snl930@hotmail.com> schreef in bericht news:1134101672.975937.311770@g49g2000cwa.googlegroups.com... > Is it possible to execute a script when clicking on a tab when using > the new Tab Control function in FMP8? > ...

working with a tab control with no tabs in design view
I'm using a tab control in Access 2000, and the user requested to have buttons in the form header, instead of the built-in tabs (so that when they scroll down, they can still switch tabs). Now, this works fine. However, when I'm in Design View, I can't access the tabs without changing the tab control's Style back to Tabs. But I want to be able to place controls in that space at the top where the tabs used to be. But if I need to turn the tabs back on when I need to make design changes, then I can't do that. So the result is wasted space at the top of the tab control,...

blinking tabs in an owner drawn tab control
Hi all, I need to blink tab or atleast tab text in an owner drawn CTabCtrl derived Tabcontrol. Please guide me how to do it. Regards Shoeb On 12 sep, 09:19, "shoeb" <sh...@octro.com> wrote: > Hi all, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 I need to =A0blink tab or atleast tab tex= t in an owner drawn > CTabCtrl derived Tabcontrol. Please guide me how to do it. > WM_TIMER where you change a brush handle and redraw the Tab (RedrawWindow () for example)) In WM_DRAWITEM, FillRect() with the brush handle for the itemID you want. ...

Web resources about - Hide a tab on a tab control - comp.databases.ms-access

Control - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

From Armenia to Australia, how the mob controls the trafficking of ice into Australia
In America, they are called the "Five Families". The term refers to the five major New York organised crime families of the Mafia, with a history ...

From Armenia to Australia, how the mob controls the trafficking of ice into Australia
In America, they are called the "Five Families". The term refers to the five major New York organised crime families of the Mafia, with a history ...

From Armenia to Australia, how the mob controls the trafficking of ice into Australia
In America, they are called the &quot;Five Families&quot;. &nbsp;The term refers to the five major New York organised crime families of the Mafia, ...

How-To: Reduce iPhone screen brightness beyond what’s possible in Control Center or Display & Brightness ...
... about sharing in the past, involves reducing iPhone screen brightness beyond levels that are possible with the standard brightness slider controls. ...

Stagefright-based ‘Metaphor’ exploit can take control of your phone in just 15 seconds
The old Android malware beastie is at it again, with researchers uncovering a new Stagefright-based exploit that can be used to take control ...

Creative Control explores the dark side of augmented reality—with humor
... Here's what the future looks like: collecting data on people while wearing AR glasses. 7 more images in gallery In the film Creative Control ...

4 Ways to Control Your Mind and Lose Weight
... after a week of eating the same things. I have found that almost anytime I have plateaued, a cheat meal has broken the plateau. Gain Control ...

The Latest: Officers regain control of Alabama prison dorm
MONTGOMERY, Ala. (AP) — The Latest on the disturbances at a prison in Alabama where inmates have stabbed each other and prison authorities and ...

MIT, Harvard researchers push new way for users to control access to personal data
Cryptography researchers at MIT and Harvard have developed software called Sieve that is designed to help users keep track of encrypted personal ...

Resources last updated: 3/20/2016 2:59:39 PM