hi,
i want to add another label to each item in a checkbox list?
anyone knows how?
thanks
Printable View
hi,
i want to add another label to each item in a checkbox list?
anyone knows how?
thanks
anyone?!
There are lots of examples of multicolumn comboboxes, I have even made one myself, just take one of them and apply the same things to the checkedlist.
a listbox is what i need, not a combo box
I believe they use the same mechanism for drawing so you'd still use the DrawItem even to Owner draw each item however you want. I could be wrong I don't use the listbox that often.
thanks , i'll start working on it
If you get stuck I'm willing to help or if you want to disect the combo I did then it can be found at: http://www.edneeis.com/control.aspx?ID=7
thnkx, thats a wonderful and well written control you got there, helped me allot, know i'll try to do it for a listbox, i'll let you know the problems that i have, thanks again : )
i see that you can use the system.drawing for pics and strings , but what how to put a label for example, what i really want is a checkedlistbox with a label in it, the other thing is the values keep changing , so the Q's are >>
Should i make this control by extendind the list box?
if yes how to add an object such as a label to it?
Yes I would inherit from Listbox. You can add other controls by adding them to the controls Control collection but it might be better to just use DrawString depending on what you need. Also for painting Common control things (like frames or combobox buttons...) there is a ControlPaint class that can be handy.
since the text of 1 of my columns is going to change allot, is there anyway we can redraw 1 of the index-es and not all?
what i'm trying to make is the same listbox that microsoft uses everywhere, like in mmc ( something like kazaa traffic tab ), you have the titles above, u can resize any just by dragging, and a bunch of items that makeup your multi column listbox, is this available for download somewhere?! do they use the same method that edneeis used in his control , by drawing?
thnkx..
and user cannot interact with the checkbox created by the controlpaint class it just draws it, what should i do about that?! redraw all on every click? how can i add a object check box?
Are you looking for the ListView? That is more like the multicolumn thing in Kazaa although I'm not sure if it supports checks or not. Unforunately you would probably have to just repaint the checkes when they are clicked.