By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,444 Members | 3,110 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,444 IT Pros & Developers. It's quick & easy.

change toolstrip button colour when button pressed

P: n/a
Mel
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.
Nov 28 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
raj
use the mouseover and mouseout events to change the colors i believe u meant
tooltip control by "toolstrip."

hth
raj

"Mel" <Me*@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
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.

Nov 28 '05 #2

P: n/a
Mel
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.

"raj" wrote:
use the mouseover and mouseout events to change the colors i believe u meant
tooltip control by "toolstrip."

hth
raj

"Mel" <Me*@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
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.


Nov 29 '05 #3

P: n/a
Mel
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?

"raj" wrote:
use the mouseover and mouseout events to change the colors i believe u meant
tooltip control by "toolstrip."

hth
raj

"Mel" <Me*@discussions.microsoft.com> wrote in message
news:A7**********************************@microsof t.com...
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.


Nov 29 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.