|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Checked List Box check in programVB.Net 2005
I would like to programatically check the check box in a CheckedListBox control. I don't see any examples in the help and have not googled up anything either. How do I do this? Rick I would enumerate through the checked items of the listbox
'To check by items Dim o As Object For Each o In Me.CheckedListBox1.CheckedItems 'Stuff to do 'Prints the item text that are checked Console.WriteLine(o) Next 'By Index Dim i As Integer For Each i In Me.CheckedListBox1.CheckedIndices 'Stuff to do Console.WriteLine(i) Next I found it. CheckedListBox.SetItemChecked
For some reason it did not show up in InteliSense and I could not get answers in Google until I searched in this newsgroup. Rick Show quoteHide quote "Rick" <R***@LakeValleySeed.com> wrote in message news:%23E5NYKx8GHA.2120@TK2MSFTNGP03.phx.gbl... > VB.Net 2005 > > I would like to programatically check the check box in a CheckedListBox > control. > > I don't see any examples in the help and have not googled up anything > either. > > How do I do this? > > Rick >
main menu disappearred
If comparision operator is one of these or contains ? VB 2005 Form Controls Disappeared!! Table Adapter Update Method UTF-8 encoding problem On Error Goto Next Loop Read another applications textboxes (VB 2005) using a triple-nested for...next loop Rounding issue Incomplete Escaping Functionality?? |
|||||||||||||||||||||||