private void filteredViewToolStripMenuItem_Click(object sender, EventArgs e) { FilteredView filteredView = new FilteredView(this); // Set the Parent Form of the Child window. filteredView.MdiParent = this; // Display the new form. filteredView.Show(); filteredView.updateView(cars); }
public CarsForm() { this.IsMdiContainer = true; InitializeComponent(); this.WindowState = System.Windows.Forms.FormWindowState.Maximized; FilteredView filteredView = new FilteredView(this); // Set the Parent Form of the Child window. filteredView.MdiParent = this; // Display the new form. filteredView.Show(); }