468,101 Members | 1,360 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,101 developers. It's quick & easy.

C#: Toolbar button image not visible for a disabled button.

Hi all!
C# question:

Does anyone knows how to make a toolbar button image to
make visible for a disabled button?

When the toolbar button is disabled, only the gray hole is
displayed instead of the grayed out image.

Thank you.
Nov 16 '05 #1
2 3140
Hi
You can workaround that by building your own disabled function. You can
use a Boolean to save the state of the button (enabled or disabled) and
leave the button always enabled. Then inside the button click event , check
for that Boolean if its value equvelant to disabled do nothing ;otherwise ,
execute your normal code.
Hope that helps

Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

Nov 16 '05 #2
Hi Mohamed!
Thank you, that helps.
-----Original Message-----
Hi
You can workaround that by building your own disabled function. You canuse a Boolean to save the state of the button (enabled or disabled) andleave the button always enabled. Then inside the button click event , checkfor that Boolean if its value equvelant to disabled do nothing ;otherwise ,execute your normal code.
Hope that helps

Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

.

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Abhi | last post: by
1 post views Thread by markeboy | last post: by
reply views Thread by Andy Bates | last post: by
4 posts views Thread by udir | last post: by
1 post views Thread by Phil_Cam | last post: by
6 posts views Thread by =?Utf-8?B?L2Rldi9udWxs?= | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.