vb.net 关于listview控件的问题

2025-01-04 07:01:33
推荐回答(2个)
回答1:

这个是固定列宽的;
Private Sub ListViewColumnWidthChanging(sender As Object, e As ColumnWidthChangingEventArgs) _
Handles ListView1.ColumnWidthChanging
Dim w As Integer = ListView1.Columns(e.ColumnIndex).Width
e.Cancel = True
e.NewWidth = w
End Sub

回答2:

listview的右上角有一个小三角,你点编辑列,里面可以设置