Here , I will give a Small Code for Add Enum Value into ComboBox using C#.net.
First We create Enum Method using Enum Keyword:
First We create Enum Method using Enum Keyword:
enum days
{
Monday=1,
Friday,
Sunday
}
A
dd a enum value into ComboBox box.A
dd 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