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

  • Thread starter Thread starter Sveta
  • Start date Start date
S

Sveta

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top