我的组合框1里有数据, 并想知道是否有可能在组合框中按字母顺序对数据进行排序?
我花了很多年试图通过搜索论坛找到答案, 却找不到任何东西,
With ComboBox2
.DisplayMember = "Name"
.ValueMember = "FullName"
.DataSource = New IO.DirectoryInfo("Path").GetFiles() _
.Select(Function(fi) New With {.Name = _
IO.Path.GetFileNameWithoutExtension(fi.FullName), fi.FullName}) _
.ToArray()
End With