1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Listbox question

Discussion in 'Visual Basic .NET' started by threeman, Oct 6, 2010.

  1. threeman

    threeman Newbie

    Joined:
    Apr 28, 2010
    Messages:
    23
    Likes Received:
    0
    whenever i open up a file in the listbox the code automatically sorts the items in abc order. does anyone know of any code to jumble the items up so they arent in abc order...thanks in advance
     
  2. zPro2010

    zPro2010 Junior Member

    Joined:
    Aug 4, 2010
    Messages:
    163
    Likes Received:
    40
    Occupation:
    hustler
    Look at the properties and see is Sorted is True.
     
  3. threeman

    threeman Newbie

    Joined:
    Apr 28, 2010
    Messages:
    23
    Likes Received:
    0
    its on false, the problem is the items are already in abc order
     
  4. zPro2010

    zPro2010 Junior Member

    Joined:
    Aug 4, 2010
    Messages:
    163
    Likes Received:
    40
    Occupation:
    hustler
    then mix them up in your text file.
     
  5. threeman

    threeman Newbie

    Joined:
    Apr 28, 2010
    Messages:
    23
    Likes Received:
    0
    there is over 2,000 items...would take too long manually
     
  6. zPro2010

    zPro2010 Junior Member

    Joined:
    Aug 4, 2010
    Messages:
    163
    Likes Received:
    40
    Occupation:
    hustler
  7. smack

    smack Junior Member

    Joined:
    Feb 1, 2010
    Messages:
    182
    Likes Received:
    78
    Occupation:
    Software Engineer/Evil Genius
    Location:
    inside .NET
    you could make a bit of code to do it.

    granted computer randomization is never truly all *that* random, since more of the built in randomizers run off the computer clock cycles, but it will do the job.

    Code:
    http://msdn.microsoft.com/en-us/library/system.random.aspx
    that's the class in the framework that will provide you with random seed numbers. list raptor will do a fine job of things like this, but if you want to roll your own that class is a good starting point.
     
  8. threeman

    threeman Newbie

    Joined:
    Apr 28, 2010
    Messages:
    23
    Likes Received:
    0
    thanks!