bmutch
asked on
highlight certain tabs in a windows form tabcontrol
I am coding such that certain controls on a tabcontrol will get their background color set to yellow on form load if the data they contain is newer than when the user last viewed them, but I would also like the tab itself that the control is on to be highlighted. I have hooked the backcolor changed event of the controls, so all I have left to do is the actual hightlighting of the tab, how do I do this?
CSS doesn't apply to the Windows Forms TabControl. What do you mean by "highlighting"?
ASKER
I somehow want to "highlight" the text on the tab "header" to indicate that a control on the tab is "old"...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
how do I get the above to occur AFTER a control on the tabpage is populated, ie. how can I force the DrawItem event to occur?
thanks.
thanks.
The DrawItem event happens whenever the control is painted. If you need to force a paint, then you can use the Invalidate method.
ASKER
thanks guys, have it working now.
check this
http://www.asp.net/Ajax/Ajaxcontroltoolkit/samples/Tabs/Tabs.aspx
Tabs Css classes
.ajax__tab_header: A container element that wraps all of the tabs at the top of the TabContainer. Child CSS classes:.ajax__tab_outer.
.ajax__tab_outer: An outer element of a tab, often used to set the left-side background image of the tab.Child CSS classes: .ajax__tab_inner.
.ajax__tab_inner: An inner element of a tab, often used to set the right-side image of the tab. Child CSS classes:.ajax__tab_tab.
.ajax__tab_tab: An element of the tab that contains the text content. Child CSS classes:none.
.ajax__tab_body: A container element that wraps the area where a TabPanel is displayed. Child CSS classes: none.
.ajax__tab_hover . This is applied to a tab when the mouse is hovering over. Child CSS classes:.ajax__tab_outer.
.ajax__tab_active: This is applied to a tab when it is the currently selected tab. Child CSS classes:.ajax__tab_outer.
you can use .ajax__tab_body