Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Disabling ToolBoxItem in Vs ToolBox after some scanrio

Thread Tools

Disabling ToolBoxItem in Vs ToolBox after some scanrio

Posts: n/a
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?

Reply With Quote

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
disabling warnings for some include Xavier Serrand C Programming 1 08-31-2007 09:24 AM
Disabling Session Replication on some applications JFL Java 0 11-13-2006 05:45 PM
Disabling some wireless connections =?Utf-8?B?UmFuZHk=?= Wireless Networking 6 09-06-2006 01:30 AM
Custom ToolBoxItem type: Praveen Ramesh ASP .Net 4 04-21-2005 09:40 PM
Disabling some of the days in a Calender Sudhir Pai ASP .Net Web Controls 1 07-21-2003 12:40 PM