C#C
C#8mo ago
stigzler

Winforms MultiLineStringEditor in .net Core?

I'm upgrading a .net Framework winforms library to .net 9. I'ts giving me no end of headaches (thanks MS). I've managed to deduce that I need to be using Microsoft.WinForms.Designer.SDK for any verbs etc, but I'm stuck at how to replace MultiLineStringEditor. Importing this lib breaks my existing code:

  [Editor(typeof(MultilineStringEditor), typeof(System.Drawing.Design.UITypeEditor))]
  [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
  public new string ToolTipText { get; set; } = null;

Results in the attached error.

I did find this:
https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls-design/designer-differences-framework

But have no idea how to apply this to my code for MultiLineStringEditor - any ideas?
image.png
Learn about the Windows Forms designer changes from .NET Framework to .NET.
Designers changes from .NET Framework - Windows Forms
Was this page helpful?