using System; using System.Windows.Forms; using WinFormsLibrary1; namespace WinFormsApp1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void ComboBoxUserControl_SelectedValueChanged(object sender, EventArgs e) { MessageBox.Show($"ComboBox selected: {comboBoxUserControl.SelectedValue}"); } private void ListBoxUserControl_SelectedValueChanged(object sender, EventArgs e) { MessageBox.Show($"ListBox selected: {listBoxUserControl.SelectedValue}"); } } }