Hi,
I think the following line is causing problem.
oForm.Items.Item("rect").Height = 325 ...
When you resize your form , rectangle height seems to changed, so the remarks text box comes with in rectangle.
You need to work out on rectangle height .
Regards