Print Page | Close Window

TabControl problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7785
Printed Date: 16 November 2024 at 10:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TabControl problem
Posted By: BGR_WEB
Subject: TabControl problem
Date Posted: 13 August 2007 at 2:57pm
Hi there,
   Might be a silly question but am stuck here so got to ask.. !
 
Is there a place where I could find a sample of the tabcontrol ? Because I cant get it to work properly...
 
I am using visual studio 2005 with vb.net.
one simple form..
a tabcontrol on it ( with 3 tabs.. )
if I put for exemple a button on the tab ( in design time ) I will see this button on all tabs on run time...
 
So basically I cant figure out to add my controls on the tabcontrol on design time..
 
Or perhaps this is something that we cannot do?
 
Thanks



Replies:
Posted By: Oleg
Date Posted: 13 August 2007 at 3:46pm
Hi,
 
Sorry, ActiveX control can't be container for .NET controls in design time. :(
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: BGR_WEB
Date Posted: 13 August 2007 at 4:38pm
haaaa.  so I was not so stupid then...
 
Ok well in this case this means I have to design the control on the run time...
 
Can you post me a snippet of code that actually shows me how to do that?  I mean how to link the control to the tab1 , tab2 etc once the control are created..
 
Thanks


Posted By: Oleg
Date Posted: 14 August 2007 at 1:28am
Hello,
You can create some panels for TabPages, put all controls to panels and manually show/hide them in SelectedChanged event.
 
But think easy to use standard TabControl from .NET. :(


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: BGR_WEB
Date Posted: 14 August 2007 at 10:18am
yeah that would be a solution.
But honestly, the only reason why I wanted to use the tabcontrol from the suite was for the "office" style that we could apply on it.
 
I do not know how to apply that style on the standard tabControl.. if this is easily doable and you have a quick way to point me out on how to do that well it would be really appreciated then.
 
Thanks


Posted By: Oleg
Date Posted: 14 August 2007 at 10:26am
Hello,
 
Sorry we don't have solution for .NET TabControl.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: BGR_WEB
Date Posted: 14 August 2007 at 10:28am
No problem.
Thanks



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