I want to have a number of objects that can be added to a checkedListBox in C# and have the objects be able to generate their own strings that are displayed in the list. I found an example of what I want to do in visual basic.
However, I can't figure out how to do it in c#. I've tried to implement my own class :
public class Device {
String s;
public Device() {
s = new String("test".ToCharArray());
}
public String toString() {
return s;
}
}
But when I run it, it displays "WindowsFormsApplication2.Device" in the list, not test..
Any suggestions would be appreciated.
Thanks, Reza
p.s. would it be possible to display text and a progress bar for each entry in a checklistbox?