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

Loading app inside AutoCAD app only

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
225 Views, 3 Replies

Loading app inside AutoCAD app only

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
3 REPLIES 3
Message 2 of 4
NathTay
in reply to: Anonymous

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

Regards - Nathan
Message 3 of 4
Anonymous
in reply to: Anonymous

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
Message 4 of 4
ChrisArps
in reply to: Anonymous

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

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