question

SaravananGanesn avatar image
0 Votes"
SaravananGanesn asked DanielZhang-MSFT commented

Windows Forms Designer (.NET Core) Serialization not working properly

I’ve created a new Windows Forms Application (.NET Core) and try to changes the value of the property in designer but it does not reflect in designer.cs. We have attached the sample from the following location.


Sample: https://1drv.ms/u/s!AsISs7GoFbYYgsFdWRhhOXZ3rGOS9Q?e=zssrrx

windows-forms
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SaravananGanesn,
>>and try to changes the value of the property in designer but it does not reflect in designer.cs
Do you mean that some properties you set in the CustomControl constructor are not displayed in the designer? After you set the properties, you need to run the program and then add userControl.
And if there is a misunderstanding, please explain in detail.
Best Regards,
Daniel Zhang

0 Votes 0 ·

Hi @DanielZhang-MSFT,

Thanks for your update.

But our issue is "Name" property value not reflect in Form1.Designer.cs when we change it in designer.

110123-microsoftteams-image-1.png


0 Votes 0 ·

Hi @SaravananGanesn,
To make the property persistent in the form designer, you can refer to the approach in this thread.
Best Regards,
Daniel Zhang


0 Votes 0 ·

0 Answers