sarahh
unread,Jan 17, 2012, 3:09:52 AM1/17/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi,
I make a designer with Visual Studio 2010 and use also the Vs
ToolBox(adding custom controls) by the following:
IToolboxService toolBoxService =
(IToolboxService)Package.GetGlobalService(typeof(IToolboxService));
toolBoxService .AddToolboxItem(toolboxitem, category);
toolBoxService .Refresh();
After dropping specific toolboxitem control on the designer I need
that this item will be disabled (grayed out).
I have the following questions:
1. How could I disable toolboxitem, whereas other toolboxitem in it's
category remain enabled?
2. How I disable the dropping of this toolboxitem?
Thanks.