object oDWGTrueView; Type oDWGTrueViewType; oDWGTrueViewType = Type.GetTypeFromProgID("Autodesk.AcCtrl"); if(oDWGTrueViewType==null) throw new Exception("DWG True View not found"); oDWGTrueView = Activator.CreateInstance(oDWGTrueViewType); if (oDWGTrueView == null) throw new Exception("Cannot create instance of the DWG True View");
Now this seems to be working fine (i.e. not throwing any exception), but the confusion is How to draw this ActiveX on my form now?
Any help would be really appreciated
Farrukh