Results 1 to 3 of 3

Thread: [RESOLVED] [2005] How to Rename an Item in a checkedlistbox?

  1. #1

    Thread Starter
    Frenzied Member dinosaur_uk's Avatar
    Join Date
    Sep 2004
    Location
    Jurassic Park
    Posts
    1,098

    Resolved [RESOLVED] [2005] How to Rename an Item in a checkedlistbox?

    Any ideas anyone?

    Cheers
    If you find my thread helpful, please remember to rate me

  2. #2
    Hyperactive Member
    Join Date
    May 2006
    Posts
    426

    Re: [2005] How to Rename an Item in a checkedlistbox?


  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] How to Rename an Item in a checkedlistbox?

    You don't rename an item. You simply set it. If you've added the text "Hello World" to your list and its at index 3 then you simply change it by setting the item at index 3:
    VB Code:
    1. myCheckedListBox.Items(3) = "Goodbye Cruel World"
    The Items property of a CheckedListBox is just a collection like any other, so you manipulate the items it contains like any other collection.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width