473,396 Members | 2,102 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,396 software developers and data experts.

VB .Net 2003 TabControl.DrawItem 3d line

ChristopherJohn
I'm using the DrawItem event to change the color of the text for the selected tab of a TabControl with the tabs on the top. The color change worx fine.
HOWEVER, The 3d line (a little white line) remains under the selected tab in the same way it appears under the unselected tabs. If you leave DrawMode at Normal, that line does not appear under the selected tab.
I hope I've explained this satisfactorily.

Anybody got any ideas?
May 20 '07 #1
1 1051
Dököll
2,364 Expert 2GB
I'm using the DrawItem event to change the color of the text for the selected tab of a TabControl with the tabs on the top. The color change worx fine.
HOWEVER, The 3d line (a little white line) remains under the selected tab in the same way it appears under the unselected tabs. If you leave DrawMode at Normal, that line does not appear under the selected tab.
I hope I've explained this satisfactorily.

Anybody got any ideas?
Hey there, ChristopherJohn!

This is an attempt to refer you to the .Net forum for your inquiry:

http://www.thescripts.com/forum/forum131.html
Jun 5 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: pothik05 | last post by:
I can not make the DrawItem event to work on the CheckedListBox control. I suggestion will be highly appreciated. I have the following code. The code works for ListBox and the second item (Two)...
0
by: Fei Li | last post by:
After I assign TabControl.SelectedIndex = -1, I call TabControl.TabPages.add(tabPage), from debugger I found private variable selectedIndex still -1, which is correct, but public property...
1
by: e | last post by:
I have an ownerdrawn listbox that paints items in various colors dependant upon whether or not it has focus, selected, etc. The code that physically paints the items is in the drawItem event, and...
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...
6
by: Panos | last post by:
Hi everyone I'm trying to understand what property or method raises the drawitem event of a statusbar control. I've been struggling to draw a progressbar, but i can't make it work. Thank u all
0
by: Paul_Madden via DotNetMonster.com | last post by:
I am handling the Listbox DrawItem event to enable the listbox strings to be displayed in different colours for easy reading. Have set ScrollAlwaysVisible and HorizontalScrollbar to true. I...
2
by: Simon Verona | last post by:
I have a few hundred forms in my application. All are based on a custom base form class. I decided that I wanted to globally change the look and feel of many of the controls in my application -...
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...
0
ChristopherJohn
by: ChristopherJohn | last post by:
I'm new to this so if this is posted in the wrong area, please advise. I'm using the DrawItem event to change the color of the text for the selected tab of a TabControl with the tabs on the top. ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.