HI all.
What is the best way for launch a Form ?
if Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(Fenetre) = Windows.Forms.DialogResult.OK Then
....
end if
or
if Fenetre.ShowModal = Windows.Forms.DialogResult.OK Then
....
end if
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.
Hi
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...