1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| 'dimensionne le grid en largeur
MSHFlexGrid1.Width = 0
For T = 0 To MSHFlexGrid1.Cols - 1
MSHFlexGrid1.Width = MSHFlexGrid1.Width + MSHFlexGrid1.ColWidth(T)
If MSHFlexGrid1.Width + 245 + (MSHFlexGrid1.Left * 2) + 60 > Screen.Width Then
Me.Width = Screen.Width
MSHFlexGrid1.Width = Me.Width - ((MSHFlexGrid1.Left * 2) + 60)
Exit For
End If
Next T
If Me.Width <> Screen.Width Then
'ajout du Scroling
MSHFlexGrid1.Width = MSHFlexGrid1.Width + 245
'dimensionne la page
Me.Width = MSHFlexGrid1.Width + (MSHFlexGrid1.Left * 2) + 60
End If
Me.Top = 0: Me.Left = 0
'dimensionne la boite des entrées texte |