For some strange reason, I cannot find “ColumnCount” property for my listbox in WindowsForm (.NET Framework), in Visual Studio.
When I tried to find a solution to specifying the number of columns for my listbox, the solution is largely about specifying the ColumnCount property.
However, when I type in listBox1.ColumnCount, I get the error message “CS1061: ‘ListBox’does not contain a definition for ‘ColumnCount’…”
I have tried removing Visual Studio and re-installing it, but it doesn’t help.
Is anyone getting the same trouble as me ?
user1514263 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.