Hi,
I make an own derivated dataBand and register it. Now i have two dataBand in designer toolBox, mine and the original StiDataBand. I want to force user of designer to use mine derivated dataBand.
How can i hide the orginal StiDataBand from the toolBox ?
Thanks,
Jean-Philippe
Hide/Unregister a component from designer toolBox
-
- Posts: 7
- Joined: Tue Sep 25, 2007 3:09 am
- Location: France
Hide/Unregister a component from designer toolBox
You can use following code:
Thank you.
Code: Select all
Stimulsoft.Base.Services.StiServiceContainer services = StiConfig.Services.GetServices(typeof(StiComponent));
foreach (StiComponent component in services)
{
if (component is StiDataBand)component.ServiceEnabled = false;
}
-
- Posts: 7
- Joined: Tue Sep 25, 2007 3:09 am
- Location: France
Hide/Unregister a component from designer toolBox
It works !
Thanks a lot Vital,
Jean-Philippe
Thanks a lot Vital,
Jean-Philippe