private void InitializeSubForms() { devicesForm = new Pg3bWindowsFormsApplication.SubForm.Devices(); devicesForm.TopLevel = false; devicesForm.Parent = mainPanel; devicesToolStripMenuItem.Tag = devicesForm; triggersForm = new Pg3bWindowsFormsApplication.SubForm.Triggers(); triggersForm.TopLevel = false; triggersForm.Parent = mainPanel; triggersToolStripMenuItem.Tag = triggersForm; eventsForm = new Pg3bWindowsFormsApplication.SubForm.Events(); eventsForm.TopLevel = false; eventsForm.Parent = mainPanel; eventsToolStripMenuItem.Tag = eventsForm; actionsForm = new Pg3bWindowsFormsApplication.SubForm.Actions(); actionsForm.TopLevel = false; actionsForm.Parent = mainPanel; actionsToolStripMenuItem.Tag = actionsForm; targetsForm = new Pg3bWindowsFormsApplication.SubForm.Targets(); targetsForm.TopLevel = false; targetsForm.Parent = mainPanel; targetsToolStripMenuItem.Tag = targetsForm; eventActionsForm = new Pg3bWindowsFormsApplication.SubForm.EventActions(); eventActionsForm.TopLevel = false; eventActionsForm.Parent = mainPanel; eventActionsToolStripMenuItem.Tag = eventActionsForm; testAndDiagnosticsForm = new Pg3bWindowsFormsApplication.SubForm.TestAndDiagnostics(); testAndDiagnosticsForm.TopLevel = false; testAndDiagnosticsForm.Parent = mainPanel; diagnosticsToolStripMenuItem.Tag = testAndDiagnosticsForm; calibrateAnalogControls = new Pg3bWindowsFormsApplication.SubForm.CalibrateAnalogControls(); calibrateAnalogControls.TopLevel = false; calibrateAnalogControls.Parent = mainPanel; calibrationToolStripMenuItem.Tag = calibrateAnalogControls; activeSubForm = testAndDiagnosticsForm; activeSubForm.Show(); }