change toolstrip button colour when button pressed

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, Is there any way I can force to change button background colour when
toggle button is checked? Just like button change its background colour when
mouseover in MS Visual Studio.NET.

I hope I can get my question answered. Thank you very much.
 
use the mouseover and mouseout events to change the colors i believe u meant
tooltip control by "toolstrip."

hth
raj
 
I think inside toolstrip, there is no mouseover, they have mouseenter ....
but I can't find any example of how to write the mouse event. I really have
no idea how to write event function.
 
And one more question is I am trying to change colour for pressed button, but
it dont' seem for me to work.

if((e.ClickedItem as ToolStripButton).checked == true)
{
(e.ClickedItem as ToolStripButton).BackColor = Color.Gold;
}

Is this code correct if I want to change colour for pressed toolstrip button?
 
Back
Top