Results 1 to 26 of 26

Thread: [RESOLVED] check box to remove items from list?

Threaded View

  1. #26

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Posts
    93

    Re: check box to remove items from list?

    i got this one on my own. i used this code.
    VB Code:
    1. Dim s As Integer
    2.  
    3. For s = 0 To List1.ListCount - 1
    4. If List1.Selected(s) Then
    5. List3.AddItem List1.List(s)
    6. End If
    7. Next
    And then
    VB Code:
    1. Dim i As Integer
    2.    
    3.     Randomize
    4.     i = Rnd(List1.ListCount) * List3.ListCount
    5.     Label4.Caption = List3.List(i)
    Ironed out a few wrinckles, and all is well. Thanks for all your help!
    Last edited by stevevb6; Feb 2nd, 2007 at 08:36 AM.

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