private void ShowVisualSimulator(object sender, EventArgs e) { performanceAnalyserPanel.Dock = DockStyle.Fill; // remove this visualSimulatorPanel.Dock = DockStyle.Fill; // remove this performanceAnalyserPanel.Visible = false; visualSimulatorPanel.Visible = true; NodeHolder.RedrawAllNodes(); }