473,236 Members | 1,631 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,236 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 10554
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.