public StudentScore() { InitializeComponent(); SC_List List = new SC_List(); List.Owner = this; SC_Edit Edit = new SC_Edit(); Edit.Owner = this; }
private void btnEdit_Click(object sender, EventArgs e) { DetectColorButton(3); pnSScore.Controls.Clear(); SC_Edit Edit = new SC_Edit(); Edit.Owner = this; Edit.TopLevel = false; Edit.AutoScroll = true; pnSScore.Controls.Add(Edit); Edit.Show(); }