Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 29th, 2012  |  syntax: None  |  size: 0.37 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.  }