all groups > dotnet windows forms designtime > july 2006 >
You're in the

dotnet windows forms designtime

group:

Changing the Toolbox display name of a custom control


Changing the Toolbox display name of a custom control k.saunders NO[at]SPAM comcast.net
7/8/2006 11:01:16 AM
dotnet windows forms designtime:
I have created a custom control and I would like it to display in the
Toolbox with a non-default name and bitmap. I have a custom bitmap
displaying, but I can't figure out how to change the display name.

My first thought was to extend ToolBoxItem and override the DisplayName
property -- yet this property cannot be overriden. Any ideas?

Thanks,
Kristy
Re: Changing the Toolbox display name of a custom control G Himangi
7/19/2006 8:35:54 PM
Use
[ToolBoxItem(typeof(YourControlClassName),DisplayName="The displayname you
want")]


---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : Drop-In Explorer GUI Controls For Your Apps (.Net & ActiveX
Editions Available)
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions rapidly in .Net
---------



[quoted text, click to view]

AddThis Social Bookmark Button