G
Guest
Hi,
I'm writing an add-in that adds controls to a form at design time. I got
this working for visible controls on the form by getting an IDesignerHost for
the form, and adding to the Controls collection of the RootComponent, but
this doesn't work for components in the ComponentTray (I want to add an
ImageList). I suspect I need to call the Add method of the Controls
collection on the ComponentTray, but I don't know how to get to the
ComponentTray object for a Form or UserControl. Any ideas ?
Thanks in advance.
Cheers,
Joris
I'm writing an add-in that adds controls to a form at design time. I got
this working for visible controls on the form by getting an IDesignerHost for
the form, and adding to the Controls collection of the RootComponent, but
this doesn't work for components in the ComponentTray (I want to add an
ImageList). I suspect I need to call the Add method of the Controls
collection on the ComponentTray, but I don't know how to get to the
ComponentTray object for a Form or UserControl. Any ideas ?
Thanks in advance.
Cheers,
Joris