Can a non-Component class have design time "Name" property?
-
Gurus, Help!! This is what I am trying to do: I have business objects that derive from a common base class. I have implemented my custom UITypeEditor (based on a TreeView) that lets edit these objects at design time. Visual Studio happily generates the code required to instantiate the tree hierarchy at run-time. So far so good. However, the variable names it assigns to these objects follows the pattern: <type_name>[1,2,...n]. Examples: reportExporter1, reportExporter2...., logGenerator1, logGenerator2,.... etc. I want the users to be able to specify variable names of their choice at design time. The easiest way would be to derive these classes from Component. However, I am NOT allowed to make them into components. So the question goes: Can a class instance have a Name property associated with it such that the Visual Studio Designer would use its value rather than generate its own default string for the name? If so, how? I am using VS 2005. Thanks a lot in advance! -Kamran