Print Page | Close Window

Groupbox inside Tab control not keeping state

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=17799
Printed Date: 27 November 2024 at 4:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Groupbox inside Tab control not keeping state
Posted By: dexatron
Subject: Groupbox inside Tab control not keeping state
Date Posted: 21 January 2011 at 11:24am
Hi,
 
I added a group box on a tab control with several tabs.
 
In code I set groupbox.visible=false
 
When I click off and then back on that tab, the group box is now visible again.
 
It should stay invisible.  It looks like controls inside the tab are losing their visible state on tab click.



Replies:
Posted By: jpbro
Date Posted: 21 January 2011 at 4:50pm
Have you put TabControlPage controls on your tabs, and then put the GroupBoxes on those TabControlPage controls? Or are your GroupBoxes directly on the TabControl (no TabControlPages)?

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: dexatron
Date Posted: 25 January 2011 at 5:49pm
Hi jbpro,
 
The controls were placed directly on the tabs.
 
This is because when you use the Tab Control Page it hides the tab theme. (The color of the page over-rides the theme that the tab is using).
 
Thanks for the response
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net