Guest User

Untitled

a guest
Jul 29th, 2012
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. I want to disable a button from clicking
  2. if(value>120)
  3. {
  4. Form3 form3 = new Form3();
  5. Button.Disable();
  6. this.close();
  7. }
  8.  
  9. Form3 form3 = new Form3();
  10.  
  11. otherForm.Button.Enabled = false;
  12.  
  13. var newForm = new Form3();
  14. newForm.Button.Enabled = false;
  15. newForm.Show();
  16.  
  17. if(value>120)
  18. {
  19. Form3 form3 = new Form3();
  20. form3.Button.Enabled = false;
  21. this.close();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment