i got a main form called [frame] included a splitcontainer and its embled [menu] form and [main] form
how can i control the [frame].splitcontainer when im clicked the button of [menu] form
i got a main form called [frame] included a splitcontainer and its embled [menu] form and [main] form
how can i control the [frame].splitcontainer when im clicked the button of [menu] form
One way would be to pass either a reference to the splitcontainer or the form to your menu:
Code:Frame frame = new Frame(splitContainer1);Code:public class Frame : Form { public Frame(SplitContainer splitcontainer) { splitcontainer.Visible = false; // For example... } }
If you understand what you're doing, you're not learning anything.