ci avevo provato ma mi da errore:
l'errore è :codice:frm_login.MdiParent = Me frm_login.showdialog()
An unhandled exception of type 'System.InvalidOperationException' occurred in system.windows.forms.dll
Additional information: Forms that are not top level forms cannot be displayed as a modal dialog. Remove the form from any parent form before calling showDialog.
il problema è che non avevo capito questa frase:"Remove the form from any parent form "
se è una dialog non è una child
quindi bastava
Graziecodice:frm_login.showdialog()

Rispondi quotando