Regular readers of this blog will not be surprised to see the addition of a checked list box. I tend to add controls to related groups so once the KryptonListBox was added the checked variant was a certainty. Here you can see the control in all its glory…

If you decide to add KryptonListItem instances instead of standard string objects then you can provide a richer level of content very easily…

You can set the CheckOnClick property so that the first click of an item causes its checked state to be toggled. Without this you have to first of all select the item and then afterwards click a second time for the checked state to be altered.
Are there any other list box variations that would make sense? I did think of adding one that shows radio buttons in place of the check box and enforces the idea of only a single item having the radio button checked at a time. But in practice I am not sure it would actually be useful.
January 28th, 2008 at 3:16 pm
the control looks great!
i also don’t think there’s a need for a radio listbox, but in some cases someone might find it useful and you already have the code :)
is databinding available for these list controls?
January 28th, 2008 at 11:23 pm
The KryptonListBox has the same data binding as the ListBox which is via a DataSource/DisplayMember pair of values. The KryptonCheckedListBox follows the CheckedListBox by not having them.
January 28th, 2008 at 11:43 pm
Hi,
a Checked Combo Box would be a nice addition, although I have not checked you latest additions. Maybe it is already there :-)
Thanks and keep up the good work.
January 29th, 2008 at 12:12 am
Option Boxes help if you can have option groups, i.e row 1,2,3 belong to group 1, 4,5,6, to group 2. I you put a splitter in the middle between the groups, you have some rather interesting.
January 29th, 2008 at 1:17 am
I think that I would be better to implement a property to draw clicked items as pressed just like you see it in the Office07-options-form.
http://img352.imageshack.us/img352/2128/20080128161256dv2.jpg
With this control you could say “AllowMultipleSelection = false” to have an beautiful listbox with an intelligent behaviour without showing the checkbox- and/or the optionbox-control left of the items.
January 29th, 2008 at 4:20 am
A Kryptonpicturecombo would be excellent as well.
One thing, for the present combo box (which is the same as a listview control, except that it’s 1 column) surely you can include the onmouseover/selected item in the list to have the lovely rendering instead of the rather demure blue colour at the moment.
You could add this to the ListView/ListBox and KryptonCombobox without too much fuss. Its the same control, and the works been done already.
January 29th, 2008 at 7:17 am
Hi Phil,
at first thanks for your lovely controls. I want to ask when new added controls, started by splitbutton and followed with listbox and checkedlistbox will be available for download. Or am I missing something and they are available now?
The second question is about crashes of VS i have noticed when using Krypton Toolkit library and VS 2008. I want to post this question to forum, but I’m waiting for authorization from admins, so i want to try to ask here also.
The problem is, when I add in VS 2008 a reference to Krypton Toolkit 2.7.1 dll and after that i try to update or add a WCF service reference, the VS crashes with Fatal execution error. When I remove the reference to Krypton Toolkit dll, the service reference can be updated and added normally. Can I ask you where could be a problem? Can you look at it for me please?
Thanks a lot for your answer.
Petr
January 29th, 2008 at 10:11 am
Waescher – Actually the KryptonListBox and KryptonCheckedListBox show like the Office image you presented. When you click an item it becomes the selected item in the list box and so displays as checked. So if you alter the text positioning properties via the StateCommon to make the text appear centered then you will get just what you need.
Vesuvius – Not quite sure what you mean by that. If you mean the drop down for the combo box should be nicely drawn then yes, I agree and this is on my list to go back and have a look at.
Postol – Can you email me the crash details along with the stack trace? That would be great.
January 29th, 2008 at 5:29 pm
Great! Thank you Phil! :)
January 29th, 2008 at 6:08 pm
[...] KryptonCheckedListBox – Another new control added to the Free to use Krypton Toolkit [...]
January 29th, 2008 at 7:18 pm
OK I’ll try and make myself clearer. In the VS toolbox you have the ListView, Listbox and Combobox controls. All three are intrinsically the same control, i.e. they all allow the interaction with list type data. Because you have done the work for theListbox control, surely this can be ported over to the ListView/Combobox controls, the only difference being that you have different views in the ListView, and the header for the list view (when in details view) would need the ‘Krypton Touch’.
You have the same concept of ListViewItems in both ListBox and ListView controls.
January 30th, 2008 at 3:56 am
Also Phil, please don’t forget about this post; http://www.componentfactory.com/forums/viewtopic.php?t=868.
Filtering is a really cool feature in a datagrid and the example uses a listbox (enter KryptonListBox ) which would result in a spectacular looking grid
February 1st, 2008 at 3:45 am
Hi Phil,
I posted details about VS crash with Toolkit library in forum. If you can look at it, it would be great.
Many thanks.
Petr
April 1st, 2009 at 9:02 pm
The kryptonCheckedListBox does not provide an overloaded Add method on Items like the standard windows checkedlistbox. Any idea how to add a checked item into kryptonCheckedListBox?