C# Propertygrid combobox with enum values (Win Forms)
问题 public enum eVisualType { None = 0, Torch = 1, Rune01, Rune02, Rune03, FireRed01, LaserBlackWhiteLeft, LaserBlackWhiteRight, LaserBlueRedLeft, LaserBlueRedRight, Wheel01, Wheel01a, Wheel02, BlinkingStar, MovingPillar } public class EnumTypeConverter : TypeConverter { public override bool GetStandardValuesSupported(ITypeDescriptorContext context) { return true; // True means show a combobox } public override bool GetStandardValuesExclusive(ITypeDescriptorContext context) { return true; // True