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:
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
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:email@example.com...
See Tony's first reply in the following thread.