'need to create at runtime 'n' buttons that have a 'checked' property (1 or 0)
Public SelectFrames As New System.Collections.Generic.List(Of Button) '
' or create 'n' checkboxes that look like buttons.
Public SelectFrames As New System.Collections.Generic.List(Of Checkbox)
Each button must have a 'checked' property so that the application can keep track of how many items have been selected on a corresponding graphical display and which ones.
Are there any properties I can already use for the existing controls to achieve this or do I have to create a new class inheriting either the button or checkbox controls and then subclassing off a new property
Thanks for any ideas.. (if this is clear) -greg
**********************The application has a variable number of items that vary from 1 to 32. When the form loads, the items on the graphical display panel must have a corresponding button in a separate dashboard for each item. If the graphical display only happens to have two items, there will only be 2 buttons, each one 1/2 the width of a panel container. If there are 32 items, 32 buttons will be created, each one 1/32 the width of the panel containing them in one horizontal row.

generic list of buttons that have check property of checkbox that looks like a button.
Ronald de Feijter
Simon Dahlbacka
thanks DMan...i did use the checkbox with a button 'appearance' I wasn't sure you do that. sure enough yes.
I just reposted this as a sligthly different question since I'm using the flowlayoutpanel. I wasn't sure the checked listbox would work here..since it would be needing the vertical scrollbar I believe. but I may come back to this.