[求助]在MSHFLexGrid如何实现列宽相等
在MSHFLexGrid中列数是动态的,如何实现相等的列宽?我用下面的代码无法实现,请高手指点!
Private Sub Form_Load()
Dim y, x As Integer
MSHFlexGrid1.Cols = 5
y = MSHFlexGrid1.Width / (MSHFlexGrid1.Cols - 1)
For x = 0 To MSHFlexGrid1.Cols - 1
MSHFlexGrid1.ColWidth(x) = y
Next x
End Sub