0

I have this array

enum Currencies {AUS, CYN, DKK, EUO, INR, NZS, AID, UKP, USA, VND};

and i'm trying to populate a combo box in a form with them.

        private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
    {
        comboBox2. = 
    }

I can't get past this, how do I populate the combobox with the array Currencies?

1 Answers1

0

You should do this,

  comboBox2.DataSource = Enum.GetNames(typeof(Currencies));
Sajeetharan
  • 216,225
  • 63
  • 350
  • 396