private void btnSignUpOpt_Click(object sender, EventArgs e) { Members aMember = new Members(); aMember.Show(); (sender as Button).Enabled = false; }
btnSignUp.Enable = true;
private void btnSignUpOpt_Click(object sender, EventArgs e) { Button btn = (Button)sender; Members aMember = new Members(); aMember.Closed += delegate { btn.Enabled = true; }; aMember.Show(); btn.Enabled = false; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)