Il mio codice seguente inserisce 100 voci nella checkbox in una colonna. Come posso modificare il codice in modo che appaia come due colonne? Grazie!VB.NET Crea due colonne CheckboxList
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
Dim di As New IO.DirectoryInfo(ImagePath)
Dim imageArray As IO.FileInfo() = di.GetFiles()
Dim image As IO.FileInfo
'list the names of all images in the specified directory
For Each image In imageArray.OrderBy(Function(i) i.Name)
CheckBoxList1.Items.Add(image.Name)
Next
End If
End Sub
cosa è CheckBoxList1? che tipo di contenitore ecc.? – Purplegoldfish