Beispiel #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            panel1.Controls.Clear();
            MainUC MainPanel = new MainUC();

            panel1.Controls.Add(MainPanel);
            MainPanel.Dock = DockStyle.Fill;
        }
Beispiel #2
0
        public Form1()
        {
            InitializeComponent();

            MainUC MainPanel = new MainUC();

            panel1.Controls.Add(MainPanel);
            MainPanel.Dock = DockStyle.Fill;
        }