> >
> > Do you mean
> >
> > dim parentForm As Form = Form.ActiveForm
> > Me.MdiParent = parentForm
> >
> > ?
> > Cetin Basoz
>
> 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