Hi all,
Is there is a way to find out if the vertical scrollbar in a MsFlexGrid is active??
This is because I want to resize my grid columns so all can be visible.
Printable View
Hi all,
Is there is a way to find out if the vertical scrollbar in a MsFlexGrid is active??
This is because I want to resize my grid columns so all can be visible.
Hi
U can do it by comparing the rowheight to the control height. This code assumes that each row is the same height.
Regards
Stuart
VB Code:
Private Sub Command1_Click() With MSFlexGrid1 .AddItem "test" & vbTab & "test" & vbTab & "test" If .Rows * .RowHeight(0) > .Height Then .ColWidth(2) = 1000 End If End With End Sub
Thank you beachbum.