- I want to disable a button from clicking
- if(value>120)
- {
- Form3 form3 = new Form3();
- Button.Disable();
- this.close();
- }
- Form3 form3 = new Form3();
- otherForm.Button.Enabled = false;
- var newForm = new Form3();
- newForm.Button.Enabled = false;
- newForm.Show();
- if(value>120)
- {
- Form3 form3 = new Form3();
- form3.Button.Enabled = false;
- this.close();
- }