private void FrmFiles_Load(object sender, EventArgs e) { ctrlFiles1 = new CtrlFiles(); ctrlFiles1.BL = true; ctrlFiles1.Name = ProjectUID; this.Controls.Add(ctrlFiles1); ctrlFiles1.Dock = System.Windows.Forms.DockStyle.Fill; }