vb.net 2003中 listbox 如何分列 显示
vb.net 2003中 listbox 如何分列 显示
A B C
1 2 3
4 5 6
7 8 9
select A,B,C from number
如何写
前台后台都可以~~~那位大虾帮帮我~~小弟先谢谢了!
急啊
[解决办法]
Visual Basic 复制代码
Private Sub SetupMyMultiColumn()
Dim x As Integer
' Add items to the ListBox.
For x = 0 To 50
ListBox1.Items.Add( "Items " + x.ToString())
Next x
' Display items in columns.
ListBox1.MultiColumn = True
' Determine the width of the items in the list to get the best column width setting.
Dim width As Integer = CInt(ListBox1.CreateGraphics().MeasureString(ListBox1.Items(ListBox1.Items.Count - 1).ToString(), _
ListBox1.Font).Width)
' Set the column width based on the width of each item in the list.
ListBox1.ColumnWidth = width
End Sub
[解决办法]
有这个属性,不过还要与ColumnWidth属性结合起来,ColumnWidth表示每列的宽度.
[解决办法]
MULTILINE
TRUE
[解决办法]
做3个listbox.拼起来
[解决办法]
用DataGrid这么显示会容易点
[解决办法]
vs2003 有好多很麻烦的地方.... 这个在2005中很容易实现啊