h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Add Enum value into ComboBox

Here , I will give a Small Code for Add Enum Value into ComboBox using C#.net.

First We create Enum Method using Enum Keyword:

enum days
    {
        Monday=1,
        Friday,
       Sunday
   }

Add a enum value into ComboBox box.
Add this code in the Form loading or button click event or any where...

comboBox1.Items.Add(days.Friday);
comboBox1.Items.Add(days.Monday );
comboBox1.Items.Add(days.Sunday);

No comments:

Post a Comment