windows - in c#, how can you disable a button after the 1st click, and enable it again after you click another button? -


i cannot figure out i'm making windows form application visual basic in c# have scan button , scans in folder , lists of files in listbox

if click time list of files appear again how can make can press scan button once, , can press again if click browse button?

the browse button select folder want scan

thanks

this pretty trivial

 private void scanbuttonclick(object sender, eventargs e)  {       //       (sender button).enabled = false;  }   private void browsebuttonclick(object sender, eventargs e)  {       scanbutton.enabled = true;  } 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo