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

dotnet windows forms designtime

group:

Collection Editor - Add Button - Customize new item names?


Collection Editor - Add Button - Customize new item names? Fran Garcia
4/27/2006 12:54:24 PM
dotnet windows forms designtime:
Hi,

I have a component that has a collection of child components. The user
selects the type of child component he wants to create in the context menu
that pops up after clicking Add button.

Is it possible to customize the item names that appear on that menu?
Currently, type name is used, but I would like to displey more friendly
names.

I've already tried applying a [DisplayName("")] attribute to every child
class, but it doesn't seem to work.

Thanks in advance,


Fran Garcia

Re: Collection Editor - Add Button - Customize new item names? G Himangi
5/2/2006 12:00:00 AM
Unfortunately, it is not possible to change the text shown for the menu
items. Look at the code for CollectionEditor through Reflector and you will
see that this is true.

G Himangi, Sky Software
http://www.ssware.com
*Shell MegaPack for ActiveX & .Net : Advanced Controls for Drop-In Windows
Explorer GUI for your App.
*EZNamespaceExtensions.Net : Rapid Development of Shell Namespace Extensions
in .Net
*EZShellExtensions.Net : Rapid Development of IE Toolbars, IE Explorer Bars
& Windows Shell Extensions in .Net


[quoted text, click to view]

AddThis Social Bookmark Button