471,319 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

change toolstrip button colour when button pressed

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
3 10282
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
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
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.

Similar topics

2 posts views Thread by Mel | last post: by
1 post views Thread by Alex Clark | last post: by
3 posts views Thread by SemSem | last post: by
4 posts views Thread by gene kelley | last post: by
2 posts views Thread by Robert Jones | last post: by
2 posts views Thread by halex2000 | last post: by
reply views Thread by smellican | last post: by
6 posts views Thread by Mike | last post: by
1 post views Thread by priyamtheone | last post: by

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.