Custom controls in a listbox?
-
Dear all, I made a custom control (a type of thumbnail with labels, buttons, ..) and I would like them to be in a list(box). Is this possible? And if yes (please do), how can I do this? Can I add it as some "item object", and add that to the list? Thank you, Michael www.code.ae :rolleyes:
-
Dear all, I made a custom control (a type of thumbnail with labels, buttons, ..) and I would like them to be in a list(box). Is this possible? And if yes (please do), how can I do this? Can I add it as some "item object", and add that to the list? Thank you, Michael www.code.ae :rolleyes:
With Windows Forms, you can, but the list box won't show them; it'll just show the .ToString version of the custom control. Note that with the WPF toolkit this is possible. AFAIK, in order to do that, you'll probably need to inherit a control from ListView and draw your items manually in the list. Not fun.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: God-as-Judge, God-as-Forgiver The apostle Paul, modernly speaking: Epistles of Paul Judah Himango