Results 1 to 2 of 2

Thread: Help with a LISTBOX ...

  1. #1

    Thread Starter
    Lively Member bgalm's Avatar
    Join Date
    Jan 1999
    Posts
    65

    Post

    Hello,
    After reading in a list of items to my listbox (with checkboxes enabled). How can I make it so they can't uncheck the boxes, but still be able to double-click on the listed item and run my code underneath ?
    Thanks,

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    This will do it.
    Code:
    Private Sub List1_Click()
    
        If List1.Selected(List1.ListIndex) = False Then
            List1.Selected(List1.ListIndex) = True
        End If
    
    End Sub
    ------------------
    Marty

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