HighTechTalks DotNet Forums  

Disabling ToolBoxItem in Vs ToolBox after some scanrio

Visual Studio.net (IDE) microsoft.public.vsnet.ide


Discuss Disabling ToolBoxItem in Vs ToolBox after some scanrio in the Visual Studio.net (IDE) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
sarahh
 
Posts: n/a

Default Disabling ToolBoxItem in Vs ToolBox after some scanrio - 01-17-2012 , 02:14 AM






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(I ToolboxService));
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.

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.