ListBox Item Renaming

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • str1ker
    New Member
    • Jun 2006
    • 23

    ListBox Item Renaming

    Hi. As you may have guessed I am a noob when it comes to Visual Basic, and as obvious as what im about to ask may be, i really hav no clue...

    How do you rename ListBox Items?

    Sorry and thanks.

    Str!ker
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by str1ker
    Hi. As you may have guessed I am a noob when it comes to Visual Basic, and as obvious as what im about to ask may be, i really hav no clue...

    How do you rename ListBox Items?
    I don't think you can. I think you need to remove and re-add them (in the same position if desired).

    Comment

    • balid
      New Member
      • Feb 2007
      • 18

      #3
      Originally posted by str1ker
      Hi. As you may have guessed I am a noob when it comes to Visual Basic, and as obvious as what im about to ask may be, i really hav no clue...

      How do you rename ListBox Items?

      Sorry and thanks.

      Str!ker
      Do you mean changing the list entries? I think you just need to know the the index value of the list entry you want to change and change the text at that index.

      Code:
      listBox.list(?) = "what ever"
      If thats not it, could you be more specific?

      Thank you,
      Balid

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by balid
        ...I think you just need to know the the index value of the list entry you want to change and change the text at that index...
        Yes, you're right Balid. Sorry str1ker - I should have checked before posting.

        I always thought the ListItem entries were read-only.

        Comment

        • str1ker
          New Member
          • Jun 2006
          • 23

          #5
          hey, that looks good. ill try that, thanks.

          i cant really try it right away cuz recently my computer went BOOM!, so i had to reinstall windows. and im still getting to the part where i reinstall VB. but, still, thanks.

          Comment

          Working...