![]() |
TabControl problem |
Post Reply
|
| Author | |
BGR_WEB
Newbie
Joined: 10 August 2007 Location: Canada Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: TabControl problemPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
BGR_WEB
Newbie
Joined: 10 August 2007 Location: Canada Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
BGR_WEB
Newbie
Joined: 10 August 2007 Location: Canada Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 August 2007 at 10:26am |
|
Hello,
Sorry we don't have solution for .NET TabControl.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
BGR_WEB
Newbie
Joined: 10 August 2007 Location: Canada Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 August 2007 at 10:28am |
|
No problem.
Thanks
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |