C
C#3w 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;
[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?
Designers changes from .NET Framework - Windows Forms
Learn about the Windows Forms designer changes from .NET Framework to .NET.
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?