Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to grey out / disable a button control in Win Forms?

Tags:

Can someone please provide an example of how to grey out a button control?

I have tried DownloadButton.IsDisabled and don't know what else to try.

like image 814
James Avatar asked Jul 17 '11 13:07

James


People also ask

How do you make a button transparent in Windows Forms?

Its simple try this. Click the button that you want to make transparent. Select FlatStyle from Properties and set it to popup Now change the BackColor property to Transparent . This will make the button transparent.

How do I GREY out in Visual Studio?

You have an Opacity setting you can change: In Tools -> Options -> Text Editor -> C/C++ -> Formatting you can change the Inactive Code Opacity Percent . Default is 65, change it to something higher. Just set the Disable Inactive Code Opacity to True if you want to cancel this altogether.


1 Answers

DownloadButton.Enabled = false; 
like image 81
Fredou Avatar answered Oct 07 '22 22:10

Fredou