Changed Color of control

m_nathani

Newcomer
Joined
Apr 15, 2003
Messages
11
Location
india
Hi,

Everybody

I have placeed pushbutton on toolbar, i want to changed color of text of button when mouse move on the button.

I also want change color of tabpages of
tab control when mouse move on the tabpage
 
For the buttons you have to change the forecolor in the MouseEnter and MouseLeave events.
But be carefull; if you set the FlatStyle of the button to System to show it in xp-style the settings are ignored. (maybe a bug :confused: )

The TabControl has a ForeColor property as well, but it does not change the color of the TabControl's Text, but the color of text (like Labels) that are placed on that control.
So, as far as I know there is no possibility to change the color of the tabs text.

To change the color of the page itself, change the BackColor property in the events.
 
Back
Top