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

Display Windows User-Forms in AutoCAD using Vb.net

7 REPLIES 7
Reply
Message 1 of 8
fxcastil
6457 Views, 7 Replies

Display Windows User-Forms in AutoCAD using Vb.net

What is the best/prefered method for displaying Windows User-Forms in Autocad?

Below is what I have used I don;t know what the difference/advantages are?

 

'make a sure a reference to System.Windows.Forms exists in the project

Dim myform As System.Windows.Forms.Form

myform =

NewformTextSeries

 

 

1) Use the commands/methods from Windows (System.Windows.Forms)  

 

' Show the User-Form 

myform.SetDesktopLocation(10, 10)

myform.ShowDialog()

 

 

 

2) Use the commands/methods from Windows (Autocad.ApplicationServices) 

' Show the User-Form  Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(myform)

 

 

 

*******************************************************

 

Does anybody have an example of showing modeless forms using AutoCad Palettes?

 

 

 

 

7 REPLIES 7
Message 2 of 8
fieldguy
in reply to: fxcastil
Message 3 of 8
fxcastil
in reply to: fieldguy

Thanks for the tutorial, is there a "library" of Autodesk VB.Net available ?

Message 4 of 8
arcticad
in reply to: fxcastil

http://www.vbcad.com/

 

This is the only book I've seen.

Are there any more?

---------------------------



(defun botsbuildbots() (botsbuildbots))
Message 5 of 8
Hallex
in reply to: fxcastil

See this very basic sample code,

 this will allow you to insert block from combobox

Link removed, see private message

 

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 6 of 8
fxcastil
in reply to: Hallex

Thanks for the information, but I only have VB.net and can't open the "C.net" file to view it

 

 If you can post the code I'll be able to see the example and apply it to VB.net

Message 7 of 8
Hallex
in reply to: fxcastil

wait till tomorrow, I can't do it right now

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 8 of 8
Hallex
in reply to: fxcastil

See attached in PM

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919

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