.NET

Reply
Distinguished Contributor
fxcastil
Posts: 404
Registered: ‎11-11-2002
Message 1 of 8 (1,776 Views)

Display Windows User-Forms in AutoCAD using Vb.net

1776 Views, 7 Replies
07-18-2012 03:18 PM

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?

 

 

 

 

Valued Mentor
fieldguy
Posts: 367
Registered: ‎03-31-2005
Message 2 of 8 (1,746 Views)

Re: Display Windows User-Forms in AutoCAD using Vb.net

07-19-2012 08:01 AM in reply to: fxcastil
Distinguished Contributor
fxcastil
Posts: 404
Registered: ‎11-11-2002
Message 3 of 8 (1,739 Views)

Re: Display Windows User-Forms in AutoCAD using Vb.net

07-19-2012 09:05 AM in reply to: fieldguy

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

*Expert Elite*
arcticad
Posts: 1,285
Registered: ‎06-21-2004
Message 4 of 8 (1,735 Views)

Re: Display Windows User-Forms in AutoCAD using Vb.net

07-19-2012 09:17 AM in reply to: fxcastil

http://www.vbcad.com/

 

This is the only book I've seen.

Are there any more?

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



(defun botsbuildbots() (botsbuildbots))
*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 5 of 8 (1,726 Views)

Re: Display Windows User-Forms in AutoCAD using Vb.net

07-19-2012 11:37 AM 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
Distinguished Contributor
fxcastil
Posts: 404
Registered: ‎11-11-2002
Message 6 of 8 (1,716 Views)

Re: Display Windows User-Forms in AutoCAD using Vb.net

07-19-2012 12:31 PM 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

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 7 of 8 (1,709 Views)

Re: Display Windows User-Forms in AutoCAD using Vb.net

07-19-2012 01:49 PM in reply to: fxcastil

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

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 8 of 8 (1,701 Views)

Re: Display Windows User-Forms in AutoCAD using Vb.net

07-19-2012 03:34 PM in reply to: fxcastil

See attached in PM

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community