Select to view content in your preferred language

How to disable Add-In button after first click

738
0
11-10-2010 08:46 AM
XiaopeiZhao
New Contributor
I had just converted one of my VBA button to an Add-In button using C#. When the button is clicked, a form shows up. If user clicks the button twice, the same form will be displayed twice. To avoid that, I would like the button be disabled after user first click the button, and enable the button when the form is closed.

I am new to Add-In, C# and Visual Studio, and could not figure out how to do this. Any help will be appreciated!

Thanks,
Patty
0 Kudos
0 Replies