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