Accessing controls of one form from another form
-
I have a buuton in my form,when I press this button,another form is open.How can I access controls in first form from second form? Mazy "And the carpet needs a haircut, and the spotlight looks like a prison break And the telephone's out of cigarettes, and the balcony is on the make And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
-
I have a buuton in my form,when I press this button,another form is open.How can I access controls in first form from second form? Mazy "And the carpet needs a haircut, and the spotlight looks like a prison break And the telephone's out of cigarettes, and the balcony is on the make And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
-
You can access controls in the first form if their modifiers value are set to public No time to breathe
Really?!!!!!!!!!!!!!!!!!!!!!!!Thats my question.How?!!!!!!!!!I want to do it from second(child) one after it is shown. Mazy "And the carpet needs a haircut, and the spotlight looks like a prison break And the telephone's out of cigarettes, and the balcony is on the make And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
-
Really?!!!!!!!!!!!!!!!!!!!!!!!Thats my question.How?!!!!!!!!!I want to do it from second(child) one after it is shown. Mazy "And the carpet needs a haircut, and the spotlight looks like a prison break And the telephone's out of cigarettes, and the balcony is on the make And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
-
I'm sorry, my mistakes, I thought u wanna do it from the first form. But I found a way that u can try, u can access the parent form's controls this way: Form.ActiveForm.TopLevelControl.Controls[index] No time to breathe
Thanks for your help :) but this return the control from second form,not parent form. :( Mazy "And the carpet needs a haircut, and the spotlight looks like a prison break And the telephone's out of cigarettes, and the balcony is on the make And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits