GetStandardValuesExclusive never gets called

UweKeim
Fri, 11 Mar 2022 16:24:58 +0000
Windows Forms

Inside a WinForms project, I derived a class from TypeConverter in order to provide a custom type editor for an item in the property grid.

Unfortunately, my override of GetStandardValuesExclusive never got called, while other overrides got called correctly.

The solution was to not derive my own class from TypeConverter but instead from the StringConverter class.

After this change, my override of GetStandardValuesExclusive was called correctly.

See also