Quote Originally Posted by yasrab View Post
if there are lot of more controls on form like text boxes, check boxes then
how to enable and disable the button in the same manner. note that that should not perform one by one. any function.
The best solution for this is creating a control array, by this way you can use
vb Code:
  1. Private Sub Check1_Click(Index As Integer)
  2.     Command1.Enabled = Not (Check1.Item(Index).Value = 0)
  3. End Sub
If you have 100 checkbox, above line is what you need to enable/disable command1 when any value of them changed.