> >
> > Exact Cetin
> >
> > but it will work when activeform is mdicontainer
>
> Yes of course, I didn't expect otherwise (even not in VFP). You can check and set with IsMdiContainer. Check help about 'System.Windows.Forms.Form'
>
> Cetin Basoz
in the VFP no need to set the mdiform