Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Help me with ListBox please ...! Thanks

Help me with ListBox please ...! Thanks

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hackerhcm
    wrote on last edited by
    #1

    I have a listbox with the following items for example : a ab abc b ba When I add a new item "abt" . How can I add that new item ("abt") in alphabetical order => So, my new item ("abt") will be placed after the item "abc".

    S 1 Reply Last reply
    0
    • H hackerhcm

      I have a listbox with the following items for example : a ab abc b ba When I add a new item "abt" . How can I add that new item ("abt") in alphabetical order => So, my new item ("abt") will be placed after the item "abc".

      S Offline
      S Offline
      Steve Pullan
      wrote on last edited by
      #2

      hackerhcm wrote:

      When I add a new item "abt" . How can I add that new item ("abt") in alphabetical order

      Set the listbox control's Sorted property to True. ...Steve "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." (Translation: I'll show you the way, but not write the code for you.) I read that somewhere once :-)

      H 1 Reply Last reply
      0
      • S Steve Pullan

        hackerhcm wrote:

        When I add a new item "abt" . How can I add that new item ("abt") in alphabetical order

        Set the listbox control's Sorted property to True. ...Steve "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." (Translation: I'll show you the way, but not write the code for you.) I read that somewhere once :-)

        H Offline
        H Offline
        hackerhcm
        wrote on last edited by
        #3

        Thank you, Steve.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups