Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a CheckedListBox where I select/click an item (line) and perform some function. When done I want to reset the CheckedListBox. I use the

CheckedListBox.ClearSelected() but my checkmark does not get removed? Any ideas.

Posted

u may try to check one item by item item checked.

Dim a, i As Integer

a = check.Items.Count

i = 0

 

Do While i < a

 

If check.GetItemChecked(i) Then

 

check.SetItemChecked(i, False)

 

End If

 

i += 1

 

Loop

 

 

hope its help u!

Posted

Fantastic, it worked !! Thank you ......

 

 

 

u may try to check one item by item item checked.

Dim a, i As Integer

a = check.Items.Count

i = 0

 

Do While i < a

 

If check.GetItemChecked(i) Then

 

check.SetItemChecked(i, False)

 

End If

 

i += 1

 

Loop

 

 

hope its help u!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...