disable designer toolbox items
disable designer toolbox items
hello,
How can I (using code, not the customize screen) disable certain items in the toolbox like components and bands, who are already accessible through the dropdown menu in the same toolbox.
Thanks
Paul
How can I (using code, not the customize screen) disable certain items in the toolbox like components and bands, who are already accessible through the dropdown menu in the same toolbox.
Thanks
Paul
Re: disable designer toolbox items
Hello, Paul.
Thank you.
Do you want to disable them at all or just remove from the toolbox and left on the dropdown menu?paullef wrote:How can I (using code, not the customize screen) disable certain items in the toolbox like components and bands, who are already accessible through the dropdown menu in the same toolbox.
Thank you.
Re: disable designer toolbox items
Only to remove them from the toolbox and leave them in the dropdown menu (to shorten the toolbox).
Thanks
Paul
Thanks
Paul
Re: disable designer toolbox items
Hello, Paul.
Thank you.
You could to it with the Toolbox Setup. Please, look at the attached image.paullef wrote:Only to remove them from the toolbox and leave them in the dropdown menu (to shorten the toolbox).
Thank you.
- Attachments
-
- ToolboxSetup.png (57.66 KiB) Viewed 1613 times
Re: disable designer toolbox items
I understand this, but I want to do it using code, not giving the user the opportunity, so how can I disable these without the customize screen?
Thanks
Paul
Thanks
Paul
Re: disable designer toolbox items
Hello.
You can do it with next code. It's an example how to remove Cross-tab.
Thank you.
You can do it with next code. It's an example how to remove Cross-tab.
Code: Select all
Stimulsoft.Base.Services.StiServiceContainer components = StiConfig.Services.GetServices(typeof(StiComponent));
foreach (StiComponent component in components)
{
if (component.ComponentId == StiComponentId.StiCrossTab)
{
component.PlaceOnToolbox = false;
}
}