What is the best way for launch a Form ?
if Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(Fenetre) = Windows.Forms.DialogResult.OK Then
if Fenetre.ShowModal = Windows.Forms.DialogResult.OK Then
I dunno what it the best way for it ?
How i can launch a child of MDI Form ?
in the Init of a MDI Form :
FenetreCouleur = New FormConf0a_Couleur(Def) FenetreCouleur.MdiParent = Me FenetreCouleur.Show()i use .show it is the best way ?
Use Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog to display a modal dialog. This API was introduced to overcome some problems associated with direct calls to Form.ShowModal from a. AutoCAD plug-in.
ah ok thx.
and for the mdi child ?
Are you referring to modeless dialog? If yes, then use Autodesk.AutoCAD.ApplicationServices.Application.ShowModelessDialog
You can also refer http://adndevblog.typepad.com/autocad/2012/06/displaying-modal-and-modeless-forms-in-autocad-net.htm...
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.