Search code examples
c#checkedlistbox

CheckedList Box doesn't have displayMember property?


I am so confused, I want to use the displayMember propery of the CheckedListbox in C# but it doesn't sems to have one?

Does anyone know if I have to add or impelement any thing before being able to use it?

Many thanks in advance. Cheers


Solution

  • DisplayMember property is decorated with EditorBrowsableAttribute:

    EditorBrowsable(EditorBrowsableState.Never)
    

    which makes it invisible for the IntelliSense. But it does not prevent you from using it - just type this property in the editor, and your code should compile fine.