DotNET Forms in Intellicad

Topics relating to AutoLisp and SDS.

Moderators: CMS Inc, avaernes

Post Reply
Danielm103
Valued Contributor
Posts: 52
Joined: Mon Aug 07, 2006 11:01 pm
Location: Albuquerque,NM,USA

DotNET Forms in Intellicad

Post by Danielm103 » Tue Apr 17, 2007 10:55 pm

For those who are interested, I have successfully made Intellicad load a managed/un-managed DotNET DLL , show a modal form and return the value back. A method to return the sds_getmainhwnd() to DotNET ShowDialog(IWin32Window Owner) is

NativeWindow ^nWin = gcnew NativeWindow();
nWin->AssignHandle((IntPtr)sds_getmainhwnd());
ICTools::Atest ^myform = gcnew ICTools::Atest();
myform->ShowDialog((IWin32Window^)nWin);
Post Reply