winforms icon indicating copy to clipboard operation
winforms copied to clipboard

How to fix the title of the Collection Editor for the custom control in NET Core?

Open BhaskarSuresh22 opened this issue 2 months ago • 0 comments

Environment

Visual Studio Professional 2022 - version 17.14.19

.NET version

.NET 8.0

Did this work in a previous version of Visual Studio and/or previous .NET release?

No

Issue description

When using the default CollectionEditor for a property that is a collection of System.Windows.Forms.Control-derived types, the editor window's title is displayed incorrectly. Instead of showing a title based on the collection's item type (e.g., "MyChildControl Collection Editor"), it displays the internal proxy type name: "ControlProxy`1 Collection Editor".

Image

Sample - CustomControl_Sample.zip

Steps to reproduce

  • Open the sample.
  • Add the child items for the MyParentControl using the ChildItems property.
  • Notice the Collection Editor's title is "ControlProxy`1 CollectionEditor" instead of "MyChildControl CollectionEditor".

Diagnostics


BhaskarSuresh22 avatar Nov 14 '25 12:11 BhaskarSuresh22