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