Kelly,
I have used this code (yours with some new measurements and the form
measurment as well)
\\\
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Me.Size = New System.Drawing.Size(750, 570)
Dim mydatagrid As New DataGrid
mydatagrid.Location = New System.Drawing.Point(25, 25)
mydatagrid.Size = New System.Drawing.Size(700, 500)
mydatagrid.Anchor = _
CType((((System.Windows.Forms.AnchorStyles.Top _
Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), _
System.Windows.Forms.AnchorStyles)
mydatagrid.Visible = True
Me.Controls.Add(mydatagrid)
End Sub
///
It shows me a nice form with in the middle an empty datagrid, which when I
maximize becomes larger and when I minimize becomes smaller, can you test
this as well?
I hope it helps?
Cor
"scorpion53061" <ad***@nospamherekjmsolutions.com>
....
You are right. You will see the size problem if you add
Me.Controls.Add(mydatagrid)