.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

what is the best use for a Windows Form ?

3 REPLIES 3
Reply
Message 1 of 4
AubelecBE
503 Views, 3 Replies

what is the best use for a Windows Form ?

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  ?

 

 

3 REPLIES 3
Message 2 of 4
StephenPreston
in reply to: AubelecBE

Use Autodesk.AutoCAD.ApplicationServices.Application.S​howModalDialog 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.

 

Cheers,

Stephen Preston
Autodesk Developer Network
Message 3 of 4
AubelecBE
in reply to: StephenPreston

ah ok thx.

 

and for the mdi child ?

Message 4 of 4

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...



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost