How too use ShowCheckListBox?

Hi there,

How too use ShowCheckListBox?

  Dim List As New List(Of String)
    Dim List2 As New List(Of Boolean)
    Dim b() As Boolean = Rhino.UI.Dialogs.ShowCheckListBox("Title", "Message", List, List2)

I’m running this obove. But nothing happens. What am I doing wrong here?


It looks like it’s just that List2 is empty.

Under “Dim List2 As New List (of Boolean)”, I changed:
List.Add(True) to List2.Add(True) and
List.Add(False) to List2.Add(False) and it seemed to work fine.

The darn copy+paste in programing… I’ve got bad memories of it since the 80s.

Well… tbh… I didn’t even copy paste it… I think a dumb mistake. Thanks for solving it :slight_smile: