Hiding/showing tab page??

Jacko

Registered User.
Local time
Today, 09:02
Joined
Jun 17, 2002
Messages
10
Hiya, i have a problem with a tab control that has several pages,
i also have a combo box on a form that i select data from and a text box thats updated from the combo box selection,and data across several tab pages that changes upon selection from the combo box also, what i wish to do is hide a tab page when the form is opened, not the tab control, just a page on it and then when a certain item is selected from the combo box have that tab control page visible and then hide if the selection changes, sure to be an easy answer but how.???

Cheers
Jacko
 
The Tab Control is actually what I look at as a control that has controls inside it.

The Tab Control has its properties

and Each Page has there properties.

Simply set the Visible Property of the Page Control that you want to Hide to "False".

Then when you want to see it set it to True. (Generally on the AfterUpdate Event of the control that contains the value that you use to determine the visible property of the Page Control)
 
Hi Travis
Thanks for the info but i have tried this to no avail, the textbox i have called " box " and my tab page "extrainfo" and my code is as follows

Private Sub box_AfterUpdate()
If [ID] = 75 Then
TabCtlstylus.ExtraInfo.Visible = True
Else
TabCtlstylus.ExtraInfo.Visible = False
End If

End Sub

but this does not work..:(
 
You don't actually refer to the tab control, just the page when you want affect a change to the properties of a page. The tab control is to affect changes to all pages.

Try Me.ExtraInfo.Visible = False
 
Thanks Naygl...:D worked a treat.......knew it had to be something simple but had mind block!!!

cheers mate
 

Users who are viewing this thread

Back
Top Bottom