Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
      if (this.panel1.Controls.Count > 0)
         this.panel1.Controls.RemoveAt(0);
      FormConfiguracion formConfig = new FormConfiguracion();
      formConfig.TopLevel = false;
      formConfig.FormBorderStyle = FormBorderStyle.None;
      formConfig.Dock = DockStyle.Fill;
      this.panel1.Controls.Add(formConfig);
      this.panel1.Tag = formConfig;
      formConfig.Show();
 }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (this.panel1.Controls.Count > 0)
            {
                this.panel1.Controls.RemoveAt(0);
            }
            FormConfiguracion formConfig = new FormConfiguracion();

            formConfig.TopLevel        = false;
            formConfig.FormBorderStyle = FormBorderStyle.None;
            formConfig.Dock            = DockStyle.Fill;
            this.panel1.Controls.Add(formConfig);
            this.panel1.Tag = formConfig;
            formConfig.Show();
        }