Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class EnumComboBox : ComboBox
- {
- public EnumComboBox() : base()
- {
- foreach (MyEnum p in Enum.GetValues(typeof(MyEnum)) {
- base.Items.Add(p);
- }
- SelectedIndex = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement