THISFORM.LOCKSCREEN = .T. ** move Container 5 pels up and 5 pels from right ** make container width 5 pixels from right ** Keep grids widths 2 pixels from the parimeter of the comntainer WITH THISFORM.cntMain .TOP = 66 .LEFT = 5 .WIDTH = THISFORM.WIDTH - 10 .HEIGHT = THISFORM.HEIGHT - 65 ThisForm.Pmc_cmdexit1.left = THISFORM.WIDTH - 30 THISFORM.sizegrids(THISFORM.gridcount) ENDWITH THISFORM.LOCKSCREEN = .F.Notice there is also a size grid method to resize the grids within the container.