User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 391,977 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,116 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser:
Views: 527 | Replies: 5 | Solved
Reply
Join Date: Jun 2006
Location: Sweden
Posts: 45
Reputation: Oxiegen is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 2
Oxiegen Oxiegen is offline Offline
Light Poster

TabControl with horizontal tabpages

  #1  
May 7th, 2008
Hi, it's me agin.

I would like to know if it's possible to customize a tabcontrol, so that I can have the tabpages shown horizontally when alignment is set to left or right.

If so, could someone give an example, or a link, of how to accomplish this?

I've been working with overriding OnDrawItem, but all I manage to do is make a complete mess.

Thanks!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2007
Posts: 55
Reputation: toko is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 3
toko's Avatar
toko toko is offline Offline
Junior Poster in Training

Re: TabControl with horizontal tabpages

  #2  
May 7th, 2008
I don't really understand what you are trying to do but for more customization of tabcontrol goto TabControl1 > Tab Pages > Collection > and press "...".
Reply With Quote  
Join Date: Jun 2006
Location: Sweden
Posts: 45
Reputation: Oxiegen is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 2
Oxiegen Oxiegen is offline Offline
Light Poster

Re: TabControl with horizontal tabpages

  #3  
May 8th, 2008
I know how to use the TabControl as it is. I've used it many times.
And I know that you can align the actual tabs in any orientation, Top/Left/Bottom/Right.

However, when aligning them either Left or Right, the tabs are displayed vertically.
I would like to have them displayed horizotally, as if they would be when aligned Top or Bottom. But lined up vertically.

(tabs) (tab page)
________|¤¤¤¤¤¤¤¤¤¤¤¤|
________|¤¤¤¤¤¤¤¤¤¤¤¤|
________|¤¤¤¤¤¤¤¤¤¤¤¤|
________|¤¤¤¤¤¤¤¤¤¤¤¤|

(I suck at ascii graphics)

Is this possible?
Reply With Quote  
Join Date: Aug 2007
Posts: 55
Reputation: toko is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 3
toko's Avatar
toko toko is offline Offline
Junior Poster in Training

Re: TabControl with horizontal tabpages

  #4  
May 8th, 2008
Ohh i see what you mean, and from what i know you can't. However, im a begginer and there probably is a way you can do it. Im saying this because i've seen it done before.
Good luck
Reply With Quote  
Join Date: Jun 2006
Location: Sweden
Posts: 45
Reputation: Oxiegen is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 2
Oxiegen Oxiegen is offline Offline
Light Poster

Re: TabControl with horizontal tabpages

  #5  
May 8th, 2008
I believe it can be done, I just don't know how.
I do know that it requires some major customazation.

So I was wondering if anyone could provide with some intel or links as to where one might find such a control without, or prefereble with, sourcecode.

I've done some major google'ing, but most of my hits turn out to be nothing of what I'm looking for.
Reply With Quote  
Join Date: Jun 2006
Location: Sweden
Posts: 45
Reputation: Oxiegen is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 2
Oxiegen Oxiegen is offline Offline
Light Poster

Re: TabControl with horizontal tabpages

  #6  
May 9th, 2008
I figured it out with the help from this guide:
No major customization needed.

http://en.csharp-online.net/TabContr...s_horizontally
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb VB.NET Marketplace
Thread Tools Display Modes

Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 9:34 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC