The best way to do it is pass a refrence of mainform object to the replace form as a parameter. Like:
do form replace with thisform
Then in the init method of replace form have:
LParameter voMainForm
** oMainForm is a custom Property of replace
ThisForm.oMainForm = voMainForm
Whenever you need to reference something on the mainform just use something like:
Thisform.oMainForm.SomeTextBox.Value = "New Value"
Rip Ryness
International Falls, MN