Creating kernelcad control programmatically

Technical discussions
Post Reply
Warren
Posts: 7
Joined: Thu Mar 30, 2017 4:33 am

Creating kernelcad control programmatically

Post by Warren »

Hello
Is it possible to add an AxKernelCad component to a ChildWindow programmatically, i.e. by some code, only when required ? Right now, I add this manually, but it is cumbersome and in some cases, just not practical. Being able to do this on the fly when needed would be very useful.
If you could point out which sample to look at for the above would be very much appreciated.
Regards

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Creating kernelcad control programmatically

Post by nickz »

Hi Warren
It should work. I will try to dig out a snipped shortly. It is not the expected use of KC. Your would bypass the form designer, which injects useful code to keep the IDE aware of the control

It is easy to avoid by creating a .NET form, kind of KcContainerForm, which would contain KC window only and create it at runtime. It would serve as a compound control for your forms
Nick

Post Reply