I am trying to get the selected value of the Combo box and display that in a label. It is in a c# winForm. This is what i have now:
private void AccountsCmboBx_SelectedIndexChanged(object sender, EventArgs e)
{
        try
        {
            string accountName = AccountsCmboBx.SelectedValue.ToString();
            FromAddrLabel.Text = accountName;
        }
        catch(Exception Ex)
        {
            MessageBox.Show(Ex.Message);
        }
}
 
     
     
     
    