.NET

Reply
*Nate Hunter
Message 1 of 4 (85 Views)

Loading app inside AutoCAD app only

85 Views, 3 Replies
12-21-2005 08:57 AM
I am trying to load my .NET application inside of AutoCAD. I do not want it
to run outside the AutoCAD application. So when minimized it does not show
minimized in the taskbar it only shows minimized in the AutoCAD app. In VB6
I would do this:

Option Explicit
Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long,
ByVal hWndNewParent As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal
lpClassName As String, ByVal lpWindowName As String) As Long

Dim ObjAcad As AcadApplication

Private Sub Form_Load()
Dim Hwnd As Long
Set ObjAcad = GetObject(, "AutoCAD.application")
Hwnd = FindWindow(vbNullString, ObjAcad.Caption)
SetParent Me.Hwnd, Hwnd
End Sub


Any Ideas would be appreciated!!

Thanks
Distinguished Contributor
NathTay
Posts: 1,691
Registered: ‎12-15-2003
Message 2 of 4 (85 Views)

Re: Loading app inside AutoCAD app only

12-21-2005 01:43 PM in reply to: *Nate Hunter
See Tony's first reply in the following thread.
http://discussion.autodesk.com/thread.jspa?messageID=4898361

Regards - Nathan
*Nate Hunter
Message 3 of 4 (85 Views)

Re: Loading app inside AutoCAD app only

12-22-2005 06:57 AM in reply to: *Nate Hunter
I looked at the link and can not figure out how to create this form. This
is a stand alone application that will only display inside of AutoCAD. I am
just learning VB.NET so I could be missing something. When I created my
form I just created a Windows form. Should I have created something else?


wrote in message news:5043832@discussion.autodesk.com...
See Tony's first reply in the following thread.
http://discussion.autodesk.com/thread.jspa?messageID=4898361

Regards - Nathan
Distinguished Contributor
ChrisArps
Posts: 311
Registered: ‎07-29-2004
Message 4 of 4 (85 Views)

Re: Loading app inside AutoCAD app only

12-22-2005 01:27 PM in reply to: *Nate Hunter
If it is in dot net, it cannot be a stand alone application unless you are using com interop.

You could make it a .dll and use netload.

Chris Arps
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 or visit the Installation and Licensing Forum to get help installing your software.