Results 1 to 3 of 3

Thread: damn listbox

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506

    Talking damn listbox

    i got a listbox and everytime i add something to it.. it goes like this: (say it was 'ouch' with a simple increment of 1)
    ouch1
    ouch2
    ouch3
    ...etc
    but, i want it so it goes
    ouch3
    ouch2
    ouch1
    so that the latest addition to the list box ends up as the topmost entry, anyway of doing that?
    atm ive got the list box to reorder but the method ive tried wont work wen the list1.additem is actually called, infact it goes kinda bonkers

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    sample for u adzzzz

    VB Code:
    1. Private Sub Command1_Click()
    2.     Static iCount As Integer
    3.     List1.AddItem "Item" & i, 0
    4.     iCount = iCount + 1
    5. End Sub

    think that is waht u want
    -= a peet post =-

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506
    cheers m8!
    * adz heads off to try it

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