checkedlistbox

uncheckable items in CheckedListBox?

Hi all, In .NET framework, is it possible to set some of the items in the CheckedListBox as "uncheckable" ? I don't want to allow user to check the same items again and add them to a another existing list. I hope I am clear. Thanks in advance. ...

When I move through a list box, why do my checked items become unchecked?

The code below moves the selected item in the listbox downwards to the next item in the listbox, but it unchecks the selected item if it was checked. How can I prevent this? private void buttonMoveDown_Click(object sender, EventArgs e) { int iIndex = checkedListBox1.SelectedIndex; if (iIndex == -1) { return; } moveL...

Casting an Item Collection from a listbox to a generic list

I want to find a better way of populating a generic list from a checkedlistbox in c#. I can do the following easily enough: List<string> selectedFields = new List<string>(); foreach (object a in chkDFMFieldList.CheckedItems) { selectedFields.Add(a.ToString()); } There must be a more elagent method to cast the Chec...

Filtering list objects from another list

I have the following class in my C# .NET 3.5 win forms app: class Field { string objectName; string objectType; string fieldName; string fieldValue; } and a List fieldList that is a datasource for a checkedlistbox. This listbox shows all the distinct objectNames from my fieldList collection. I want to create another checkedlistbo...

How can I make my checkedlistbox vertically scrollable when MultiColumn is set to true ?

I've got a Checkedlistbox, which is 3 rows high, and large enough to display about 5 elements. As long as I've got less than 15 elements, everything runs fine. However, if I add a sixteenth element, the checkedlistbox displays an horizontal scrollbar which takes 2 item rows, which means all the Items are now on only one row. Worse, if ...

SetItemChecked(index,boolean) VS SetItemCheckState(index,Checkstate)

I just stumbled upon the SetItemChecked and SetItemCheckState when working on a checked listbox. The SetItemChecked takes an listindex and True/false to either set the listitem to checked or unchecked. The SetItemCheckState takes an listindex and a CheckState-enum to set the state to either checked, unchecked or Indeterminate. Why doe...

How to detect if items are added to a ListBox (or CheckedListBox) control

This seems like a fundamentally simple question. I have a WinForms dialog box with a listbox. This control is not populated via data-binding but is filled with calls to listBox.Items.Add (obj); It is possible that this call can be made asynchronously from various places and I would like to hook the listbox and watch for changes in it...

Tooltips for CheckedListBox items?

Is there a straighforward way to set additional text to appear in a tooltip when a user's mouse is held over an item in a CheckedListBox? What I would expect to be able to do in code is: uiChkLstTables.DisplayOnHoverMember = "DisplayOnHoverProperty"; //Property contains extended details Can anyone point me in the right direction to d...

Looking for a WPF ComboBox with checkboxes...

My google skills fail me. Anyone heard of a control like that for WPF. I am trying to make it look like this (winforms screenshot). ...

How to create a CheckedListBox column for a DataGridView

What is the easiest way to create a DataGridView column that contains a CheckedListBox control for each cell? The CheckedListBox does not need to be databound. ...

Is it possible to set a checked listview item to mixed state?

The CheckBox control exposes both boolean Checked and System.Windows.Forms.CheckState enum CheckState properties, which allow you to set the control to either checked, unchecked, or mixed state (Indeterminate enum value). I want to set a ListView item's state to Indeterminate, but only the Checked property seems to be available. So, is ...

Issues adding items and expanding the collections list of checkedlistbox on a windows form in c#

Hi, This may seem like a dumb question. I have a textbox that can be used to add items to a checkedlistbox at runtime on a windows form. I'm using c#. It works perfectly fine at runtime. The item gets added and stuff, when the form is open. But, when I close and open the form again, I don't see the added item in the checkedlistbox list. ...

Get index with value in Checked List Box

I am actually finding that chkContactType.Items is empty when I step through the code. I even added a Watch to chkContactType.Items.Count and it is never anything but 0. I am severly confused now as it obviously isn't as my Insert method works fine which uses these same boxes and inserts the Value Member for each item.... I have som...

C# checkedListBox and EventArgs

What am i doing wrong here? be gentle. for checkedlistbox I can update the items very simply by using private void button3_Click(object sender, EventArgs e) { checkedListBox4.Items.Add("whatever"); _or use an object} works great, but what i want to do is send the checkedlistitem a set of items fr...

checked list box text + value

Hi how to retrieve checked list box value in win forms application using c# ? just like in asp.net li.selectedvalue and li.selectedtext is there any methods like this to get value and text individually? Regards, Nagu ...

Looking for a CheckedListBox control with icons support

Is there a CheckedListBox control with icons support for Windows Forms? Thanks. ...

CheckedListBox used from Python(pywin32)

Does anyone know how to get the list of items and check/uncheck items in a CheckedListBox from python? I've found this to help me partly on the way. I think I've found the handle for the CheckedListBox(listed as a SysTreeView32 by WinGuiAuto.py). One usage will for my part be to create an autoinstaller that manages to uncheck all checkb...

Why is Databinding for a CheckedListBox "Hidden"?

The DataSource property on a CheckedListBox is hidden from Intellisense. Why? You can use the binding properties to make it work, but I'm worried that it's hidden for a reason and that I shouldn't be databinding on a CheckedListBox for some important reason that I'm not aware of. Is databinding on a CheckedListBox ok?? ...

WPF-ListBox-Multibind Howto...

Here's the situation: ListBox has a ItemSource that gets its display and value data from Table A: Table A ID Activity 1 Skiing 2 Hiking 3 Fishing TableB has a list of people TableB ID Name 1 Tom 2 Dick 3 Harry TableC is an xref that joins up a list of people with their preferred activities... ...

c# checked listbox MouseMove vs MouseHover event handler

I am using the following MouseMove event-handler to show the text-file content as a tooltip on CheckedListBox and there is a text-file object tagged to each checkedListBoxItem. private void checkedListBox1_MouseMove(object sender, MouseEventArgs e) { int itemIndex = checkedListBox1.IndexFromPoint(new Point(e.X, e.Y))...