Grpnursery.Top = 38
        Grpnursery.Left = 20
        grpone.Top = 38
        grpone.Left = 20

i have 15 groupbox in my form and i want them all to be in same position in form.
How to make a function of position and all call to all the controls..

function position()
dim grp as groupbox
grp.top=20
grp.left=40
end function

I know this wont work but what will be ta correct function for it.. plz help.. thanks for response.

Loop through all Form.Controls.
Check if the control is a GroupBox.
If so, set top and left.