public VideoPallet(string file, ViewRecordedVideos p) { InitializeComponent(); fileName = file; string[] splt = file.Split('\\'); lblFile.Text = splt[1]; parent = p; }
private void button4_Click(object sender, EventArgs e) { startupPnl.Visible = false; disposing(); newMDIRecorded = new ViewRecordedVideos(); // Set the Parent Form of the Child window. newMDIRecorded.MdiParent = this; newMDIRecorded.Dock = DockStyle.Fill; // Display the new form. //this.mriContainer.Controls.Add(newMDIChild); newMDIRecorded.Show(); }