Hi Rick,
ThisForm.AddObject("grdMyGrid", "grdMyGridClass")
WITH Thisform.grdMyGrid
.Left = 10
.Top = 10
.Visible = .T.
ENDWITH
No need to subclass.
JP
>Hello everyone,
>
>I am using the addobject to add a grid to my form during run time. How can I control the position of the grid on the form in the code?
>
>Thanks a lot
- Jeff