dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.42k stars 984 forks source link

Multiline Checkbox text is deleted on Save #8735

Closed paul1956 closed 1 year ago

paul1956 commented 1 year ago

Environment

Microsoft Visual Studio Community 2022 (64-bit) - Preview Version 17.6.0 Preview 1.0

.NET version

N/A

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

Unknown

Issue description

When multiline CheckBox is created, using Designer, when form is saved the text is deleted.

Steps to reproduce

Create a form, add a CheckBox, Use dropdown under CheckBox.Text to enter multiple lines of text. Hit to Save the text and you will see it on the design surface. Now Save the Form. The text is deleted from Form.Designer. CheckBoxText Disapears.zip

Diagnostics

Silent. No errors.
elachlan commented 1 year ago

@Olina-Zhang can your team please verify this issue?

Olina-Zhang commented 1 year ago

Tested this issue, it can reproduce after serialization in core designer, doesn't repro in Visual Studio 17.4.5. Will open a GH issue in Winforms designer repo.

Olina-Zhang commented 1 year ago

Filed a Winforms designer repo issue to track: https://github.com/microsoft/winforms-designer/issues/4980

Olina-Zhang commented 1 year ago

This issue was fixed in internal VS build, please use incoming Visual Studio 2022 preview build for testing. Text_Fixed

paul1956 commented 1 year ago

@Olina-Zhang it would help people outside the development team if when you close something as complete, we had some idea what public release it is targeted at. I don't need a guarantee just a "this will not be in before version X.Y" so we don't waste time trying every preview and finding the issue still there.

Olina-Zhang commented 1 year ago

@paul1956 the fixing of this issue now is also in public release: Visual Studio 17.5.3.