0

I've been able to create a WinForm as a custom editor for a custom object, but how do you get Visual Studio to use a WinForm as a custom editor for a dictionary of custom objects?

Even help understanding how to use a WinForm as a custom editor for a dictionary of integers, strings, or any other "normal" type would be helpful...

Steve Mol
  • 142
  • 2
  • 8
  • Have you read [this](https://stackoverflow.com/questions/1016239/how-to-create-custom-propertygrid-editor-item-which-opens-a-form) answer? – Alex B. Aug 13 '20 at 08:20
  • Btw...do you have a sketch of what you want to achieve? It´s still unclear to me what you are trying to solve. – Alex B. Aug 13 '20 at 08:22
  • Yes, I read that - and got it to work. The problem is that I'm not working with just one single object, but a Dictionary(Of string, CustomObject). I can't get the editor to use a custom form for a Dictionary. For that matter, I can't get the editor to use a custom form for ANY Dictionary, not even a Dictionary(Of Integer) for example. It always shows me an empty Collection Dialog with the Add and Remove buttons disabled. – Steve Mol Aug 13 '20 at 08:43
  • Have you trried creating your own dictionary class, implementing IDictionary or inheriting from Dictionary, holding a private Dictionary member variable? And use this class as your custom editor? – Alex B. Aug 13 '20 at 09:15
  • I have created an object inheriting from Dictionary, but I can't get it to use my custom editor. That's the root of the question. – Steve Mol Aug 13 '20 at 09:49
  • That´s beyond my knowledge. Maybe you can add the C# tag to widen the scope of your Q and get more attention. Or you ask in the MSDN forums. – Alex B. Aug 14 '20 at 07:51
  • 1
    I appreciate your help, @AlexB. I'm trying an entirely different approach (again). – Steve Mol Aug 18 '20 at 22:02

0 Answers0