473,395 Members | 1,637 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 10584
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mel | last post by:
Hi, is there any way I can implement toolstrip toggle button simular to the MS Word alignment button? if one toggle button already pressed down, if user click on the "pushed down button", the...
1
by: Alex Clark | last post by:
Hi all, I'm using the ToolStrip in .NET 2.0, and I can't seem to find a way to change the size of it. What I want is a toolbar the size of the IE toolbar, preferably with text below images if...
3
by: SemSem | last post by:
i make a tool strip iwant to make ToggleButton as all buttons are push buttons . How i can change this buttons from push to toggle. Thanx at all -------------------------------...
4
by: gene kelley | last post by:
The default ToolStrip apparently renders an MS Office Style ToolStrip when the RenderMode is other than "System". When using a BackgroundImage in the ToolStrip, this Office Style border has rounded...
2
by: Robert Jones | last post by:
I have a toolstrip button on a windows form. If my form does not have focus, when the user clicks on the toolstrip button nothing happens, and they have to click a second time for the button to...
2
by: halex2000 | last post by:
Hi, I've used a toolstrip up until now for my program, but I've just discovered that it doesn't support checkboxes. Is there a way to put one in a toolstrip? I could also use a state button...
0
by: smellican | last post by:
Hello. I have a strange problem when calling a common dialog with a toolstrip button. When the dialog comes up, it will completely ignore the first click that you input. I do not have this...
6
by: Mike | last post by:
I have a program that is crashing on some machines (at a client of ours). I have determined that it goes down on this line of code: ToolStrip x = new ToolStrip(); I created a simple test app...
1
by: priyamtheone | last post by:
In C# 2005 (.Net 2.0), while working with a toolstrip, if its TabStop property is set to TRUE and there are two comboboxes and a button in the toolstrip, why doesn't the button get any focus when the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.