Exemplo n.º 1
0
        //Form1 fm = new Form1();

        // usc3 control1 = new usc3();


        // MainForm code
        private void SomethingHappened(object sender, EventArgs e)
        {
            usc3 control2 = (usc3)sender;

            //sender.SomethingHappened -= UserControl1_SomethingHappened;

            //usc3 control2 = new usc3();
            control2.Dock = DockStyle.Fill;
            panel1.Controls.Clear();
            panel1.Controls.Add(control2);
        }
Exemplo n.º 2
0
        private void label3_Click(object sender, EventArgs e)
        {
            usc3 mc3 = new usc3();

            panel1.Controls.Clear();
            mc3.Visible = true;
            mc3.Dock    = DockStyle.Fill;
            panel1.Controls.Add(mc3);
            nowon            = 3;
            label1.ForeColor = SystemColors.ControlDark; label2.ForeColor = SystemColors.ControlDark;  label4.ForeColor = SystemColors.ControlDark; label5.ForeColor = SystemColors.ControlDark; label6.ForeColor = SystemColors.ControlDark;
            label1.Font      = new Font(label1.Font.Name, 24, FontStyle.Regular); label2.Font = new Font(label2.Font.Name, 24, FontStyle.Regular); label4.Font = new Font(label4.Font.Name, 24, FontStyle.Regular); label5.Font = new Font(label5.Font.Name, 24, FontStyle.Regular); label6.Font = new Font(label6.Font.Name, 24, FontStyle.Regular);
        }