473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

TabControl drawing issues

hi, im trying to get my form (that has a tabcontrol and 4 tabs on it) to be a
solid color, aka you cant see the color Control that the TabControl has. The
issue im having is, that the control color is bleeding through. I have set
the forms backcolor to another color. all tabs are a different color, and i
have OwnerDrawn set to true....yet i cant get the form to be a solid, smooth
color. any help would be appreciated
--
-iwdu15
Apr 12 '07 #1
2 1610
On Apr 12, 6:16 pm, iwdu15 <jmmgoalsteratyahoodotcomwrote:
hi, im trying to get my form (that has a tabcontrol and 4 tabs on it) to be a
solid color, aka you cant see the color Control that the TabControl has. The
issue im having is, that the control color is bleeding through. I have set
the forms backcolor to another color. all tabs are a different color, and i
have OwnerDrawn set to true....yet i cant get the form to be a solid, smooth
color. any help would be appreciated
--
-iwdu15
Have you tried invalidating the forms detail area during the
TabControl.TabIndexChanged event?

Private Sub TabControl1_TabIndexChanged(ByVal sender As Object, ByVal
e As System.EventArgs) Handles TabControl1.TabIndexChanged
Me.Invalidate() 'Forces repaint
End Sub

That may not be the best way, especially if you have a lot of controls
on the form (it may look like a flicker between TabPages). The
TabControl has got to be the most bug ridden control in the set.

Apr 13 '07 #2
Have a look at the tips on my site, specifically 'A Completely OwnerDraw
TabControl.'...
http://www.dotnetrix.co.uk/tabcontrols.html

or use my Free TabControlEx instead of the standard TabControl...
http://www.dotnetrix.co.uk/controls.html

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"iwdu15" <jmmgoalsteratyahoodotcomwrote in message
news:54**********************************@microsof t.com...
hi, im trying to get my form (that has a tabcontrol and 4 tabs on it) to
be a
solid color, aka you cant see the color Control that the TabControl has.
The
issue im having is, that the control color is bleeding through. I have set
the forms backcolor to another color. all tabs are a different color, and
i
have OwnerDrawn set to true....yet i cant get the form to be a solid,
smooth
color. any help would be appreciated
--
-iwdu15

Apr 13 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ken Lee | last post by:
Hi all, I'm sort of very new to C# and haven't programmed in OO for a while. I'm trying to override the backgroundimage to the tabcontrol but it just doesn't seem to want to do it, can someone...
3
by: cdj | last post by:
Hi all, I've got a tabControl, initially with one tabPage, along with two buttons, one to add another tabPage, and one to delete the current (selected) tabPage. On each tabPage, when it is...
4
by: Alberto | last post by:
How can I do to show the tabs in a TabControl in the botton of the control? Thank you.
10
by: VJ | last post by:
Is there any way I can get the rectangle area of the TabPage area only of a TabControl. I am trying here to paint my tabpage area with one color and tabPage tabs in a different color. Thanks...
4
by: Oenone | last post by:
I'm using a TabControl to facilitate a wizard-style form, using some of the techniques described here: http://www.codeproject.com/cs/miscctrl/WizardTab.asp For the most part I have this...
9
by: Michael Turner | last post by:
Hi Guys Having problem with the tab control, I need to set the background color to something different than the standard, I have found code on the web and now can redraw the tabpage buttons so...
2
by: Rex the Strange | last post by:
I suspect the answer to this question is "you can't," but here goes anyway: I have a tabcontrol which contains, of course, various tabpages (added programmatically at runtime, but this is...
2
by: Steve | last post by:
Hi All How can I tell how many Windows forms Tabcontrol tabpage headers are visible at any time within a Tabcontrol? I want to display some buttons which offer horizontal scrolling of the...
4
by: Steve | last post by:
Hi All Is there any way to change the colour of the Tabcontrol Tab header strip I have found how to override the individual Tab header colours in the drawitem event but the rest of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.