disabling a button on form 2 from form 1 with a checkbox
问题 I have two form objects: form1 and form2 . I have 1 button on form2 and a check box on form1 . When the check box is checked, I want to show the button and when it is unchecked I want the button to be disabled. I know that in visual basic I did such a thing like this: form2.button.visible = false How would I do something like this in c# ? 回答1: In general case (when Form1 and From2 instances are independent) you can do something like that. In Form2 implement a public property : public partial