Re: FindString CheckListBox

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Jorge (anonymous_at_discussions.microsoft.com)
Date: 02/10/04


Date: Tue, 10 Feb 2004 06:09:53 -0800

Hi Cor
Good point got to work, thanks
Jorge
>-----Original Message-----
>Hi Jorge,
>
>I never used the checked listbox, and I know you know
enough about this to
>find it yourself if you see what you did probably wrong.
>
>> The code below only selects the first ocurrence
>>
>> While reader.Read
>> For i = 0 To Me.CheckedListBox1.Items.Count - 1
>> Me.CheckedListBox1.SetItemChecked
>
>Which one you think will be checked except the first,
there is not an
>indexer?
>
>I think it has to be something as
>
>me.checkedlistbox1.items(i).setitemchecked (I do not
know if that is the
>right one but that you can see in your intelisense I
think.
>
>:-)
>
>> (Me.CheckedListBox1.FindString(reader.GetString(0)),
True)
>> Next
>> End While
>> reader.Close()
>>
>Cor
>
>
>.
>