8
아래 코드는 100 개 항목을 모두 하나의 열로 선택란 목록으로 가져옵니다. 두 코드로 표시되도록 코드를 수정하려면 어떻게해야합니까? 감사!VB.NET 두 열 만들기 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
입니까? 어떤 종류의 컨테이너? – Purplegoldfish