// Button to display line graph on selection in drop down private void Button_Click_7(object sender, RoutedEventArgs e) { // ... Get the ComboBox. var comboBox = sender as System.Windows.Controls.ComboBox; string value = comboBox1.SelectedItem.ToString(); Form5 F5 = new Form5(value); F5.Show(); }
private void button3_Click_1(object sender, EventArgs e) { Form5 form5 = new Form5(); form5.Show(); }