Option Control to hide/show page tabs
Thank you for taking the time to report an issue.
What's wrong... Please write below.
I am creating a form where I have an option group with 7 options and a tab control with 7 pages. What I want to happen is when a user selects an option only the corresponding page tab is displayed, all the others are hidden.
I would also want the tabs hidden when opening a new record and no selection has yet been made.
In this article
* Understand tabs
* Why hide tabs?
* Show or hide object tabs without using overlapping windows
* Switch from tabs to overlapping windows
What I want is roughly 10 tabs per row. Is there anything else to change beside setting "multirow" to yes?
There are about 30 usable controls, ranging from option groups to text boxes and command buttons. Also a bunch of other non-usable labels, lines etc.
They will be hidden or shown in groups of roughly 1/3 of the total controls.
My question is what would be considered best practice here:
1) To set the controls in subforms
2) To group the controls and use a For Each statement based on the .tag property
3) To manually show/hide each control
I believe that (1) would be the easiest, but I once read that subforms carry a lot of overhead. (2) would probably be my second choice, but carries more code than (1). I hope nobody says (3) since I'd sure not like to code all of that.
Or, is there another, better choice?
On the last record of each page, I have added an OnExit Event with a GoToControl macro so that one can Tab from the last control of one page to the First control of the next page.
this works well.
However, one of the users has discovered that if the cursor is in the last box on any page (which has the GoToControl macro) and she clicks to advance the Navigation button, instead of moving to the next record (and same control), the Navigation button moves the cursor to the first control of the next page.
Does anyone know how I can get the record navigation to work correctly (to next Record) while still having the tabbing sequence working well (from last control on one page to first control on the next page)?
I have an good example from the TeamViewer software settings page. I'm interested in learning how to design forms like that in VB.NET.
How do I load a different page when you click a different setting? There are tons of software that have a kind of "tabbed" settings page, except there are no visible tabs.
I have not found any option that I know that allows you to do this in VS2010 by the use of tabs, panes or other Group Controls.
Does anyone know how to design the form like the images below and how to make it look like it's different pages/views being showed without using tabs or anything like that?
The option box is called fmeKnitWovenOther. There is a label called fmeKnitWovenOtherLbl that I would like to hide when any option is selected and a number of controls I would like to hide only if the user selects option 2.
The problem is that I have set the .visible property of every control individually, but I will need to expand this form and add more controls to be hidden for the other two options. If I keep setting the .visible property for every control manually, I am going to wind up with a giant list of controls all manually set to .visible = True and .visible = False depending on theIf or ElseIf condition.
I can get this to work in a split form with inserted tabs but not on a plain horizontal tabs navigation page.