1-first you must fill of the form name property i prefer with scx name 2-add a property to the form which is name isSingleRun value with .t. 3-put below codes to load event of the form
LOCAL x,nFormCount
nFormCount=0IFthis.isSingleRun
FOR x=1TO_screen.formcountIF_screen.forms(x).name==this.Name
nFormCount=nFormCount+1ENDIFIF nFormCount>1_screen.forms(x).show()
RETURN .f.
ENDIFNEXTENDIF