TAB CONTROL PROPERTIES

G

Greg

does anyone know of a way you can choose not to display the outline of a tab
control, just the tab buttons? i know you can make the control transparant
but how does a user then navigate through tabs??
 
T

tina

start by setting the tab control's BackStyle property to Transparent, as you
mentioned in your post. then go a couple steps further: set the tab
control's Style property to None (the choices are Tabs, Buttons, and None).
add an option group control to the form, using toggle buttons for the
options, and setting each option's OptionValue property to equal the
PageIndex value of a specific Page in the tab control. (the easiest way to
do this is by using the Controls Wizard from the Toolbox toolbar.)

for instance, let's say you have three pages in your tab control. (i'll call
the tab control "TabCtl0".) the pages' names and PageIndex settings are:

Page1, 0
Page2, 1
Page3, 2

add an option group control with three options, as toggle buttons. i'll call
the option group control "Frame5". set the OptionValue property of the first
toggle button to 0, the second toggle button to 1, and the third to 2.

now add the following code to the *option group* control's Click event, as

Me!TabCtl0 = Me!Frame5

make sure you do *not* add the code to a toggle button in the group - add it
to the option group control's Click event.

click on each toggle button in the option group control, to move from page
to page in the tab control.

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top