Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / April 2006

Tip: Looking for answers? Try searching our database.

Tab Control Customization

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Martin Rais - 21 Apr 2006 17:54 GMT
Hi! I would like to draw a Tab Control myself (instead of the recatangle,
for example, I would like to draw a rounded Rect). Is there any way to do
this or should I create my own Tab Control?
Thanks.
Martin
Tim Wilson - 21 Apr 2006 20:14 GMT
You can use the GraphicsPath class to construct a rounded region and then
set this region into the Region property of the TabControl. There is
information in the newsgroup archives on constructing a rounded rectangle.
http://groups.google.com/groups?as_ugroup=microsoft.public.dotnet.*&as_q=rounded
+rectangle


Signature

Tim Wilson
.NET Compact Framework MVP

> Hi! I would like to draw a Tab Control myself (instead of the recatangle,
> for example, I would like to draw a rounded Rect). Is there any way to do
> this or should I create my own Tab Control?
> Thanks.
> Martin
Mick Doherty - 21 Apr 2006 20:25 GMT
Depends on exactly what you want.
You can Fully OwnerDraw the TabControl, but if you want full control over
the location and size of the tabs, then you'll be better off creating a new
tabcontrol from scratch.

Some links which you may find useful:
 a.. http://www.dotnetrix.co.uk/tabcontrols.html
 b.. http://www.dotnetrix.co.uk/custom.html ("Create a PanelManager" can
easily be modified to build a custom tabcontrol)
 c.. http://www.codeproject.com/cs/miscctrl/flattabcontrol.asp
 d.. http://www.codeproject.com/dotnet/CustomTabControl.asp

Signature

Mick Doherty
http://dotnetrix.co.uk/nothing.html

> Hi! I would like to draw a Tab Control myself (instead of the recatangle,
> for example, I would like to draw a rounded Rect). Is there any way to do
> this or should I create my own Tab Control?
> Thanks.
> Martin

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.