473,326 Members | 2,076 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,326 software developers and data experts.

Disabling Toolbarbutton

Hi,

We are developing a windows application using c#.

We have created a toolbar with some toolbar buttons.

When we disable the toolbar button, the toolbar button image should be
displayed as a grey image.
But currently it blackout the image.
(eg. if I put a smiley icon, then when the toolbar is disabled it just
displays a grey cirlce.)

How do I solve this problem?

The toolbar button just have one property 'imageindex' to display the image.

Is there any property to display different image when this button is
disabled?

Any ideas?

Thanx.

Regards,
R.Balaji
Nov 15 '05 #1
1 2029
Hi,

Got the answer...

Hi Balaji,

One other thing that has helped me to get a fairly good depiction of the
original image grayed out when a toolbar button is disabled is to set
TransparentColor property and
the ColorDepth property for the ImageList that holds the images for your
toolbar buttons.

You might like to try to ensure that the ImageList's TransparentColor
property is set to a color value that is the background for your images.

Also ensure that the ImageList's ColorDepth property reflects the actual
color depth of the images that you add to the image list. Also, ensure that
all the images in the imagelist are of the same color depth.

Please check to see if this helps in any way.

Regards,
Aravind C
Thank you Aravind.

Regards,
R.Balaji

"R.Balaji" <rb********@hotmail.com> wrote in message
news:Oc**************@TK2MSFTNGP10.phx.gbl...
Hi,

We are developing a windows application using c#.

We have created a toolbar with some toolbar buttons.

When we disable the toolbar button, the toolbar button image should be
displayed as a grey image.
But currently it blackout the image.
(eg. if I put a smiley icon, then when the toolbar is disabled it just
displays a grey cirlce.)

How do I solve this problem?

The toolbar button just have one property 'imageindex' to display the image.
Is there any property to display different image when this button is
disabled?

Any ideas?

Thanx.

Regards,
R.Balaji

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: cody | last post by:
i can't figure out how to manually open the DropDown menu which is associated to my ToolBarbutton. i want to open it when the user presses a certain key. -- cody Freeware Tools, Games and...
0
by: Dana Epp | last post by:
I have a ToolBarButton that when I set it to disabled (button.Enabled = false;) causes a really ugly gray masking effect to take place. This is normal and the intended way of the button, but I...
1
by: geoff | last post by:
I am trying to learn how to create my own controls. I want to create my own toolbar which would be similar to the .net toolbar except that my version would allow 3 images per button (off, over,...
1
by: Tulasi | last post by:
Is there any possibility to set ToolBarButton back color.
2
by: Peter Rilling | last post by:
It seems to me that the ToolBarButton should be a control, but instead it inherits from Component. Is there a reason this could not have inherited from Control since really a ToolBarButton is...
0
by: Brian Binnerup | last post by:
Hi. I am using the ms:ToolBar control on one of our products, and now a customer whishes for it to be with a dark blue background - I can do that by specifying a style on the ms:ToolBar tag -...
5
by: Barry Gast | last post by:
Hi. I am trying to access the names of the toolbar buttons in order to match to correct button name passed to a function. However, there is no ..Name property on a ToolBarButton control. Is...
3
by: Tom | last post by:
Hi Hi i am trying to draw on top of a button on a standard toolbar. All i want to do is draw a small rectangle on the button to represent the selected color. I have tried the folowing code in...
4
by: Ahmed | last post by:
Hi everyone, Is there a way to add a toolbarbutton with dropdown menu similar to the mail button in IE? In another word, when the chevron is part of the button not beside it. Thanks Ahmed
0
by: Steven | last post by:
Hi, I have a toolbar control with several buttons in ToolBarButton class. How can I change the text color of the ToolBarButton control in VB.NET 2003? Thanks! Steven
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
1
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.