This issue has been moved from a ticket on Developer Community.
Hello Microsoft,
I’m trying to convert my Windows Desktop Apps to Windows Forms and .NET Core 6.
I have discovered a bug in the code produced by Visual Studio 2022.
I have put my reproducible solution on GitHub at https://github.com/CBrauer/Microsoft-2022-bug.
When running the program, you will see a table with four quadrants. In the lower right cell, I have put another table with two cells. I dragged a “dayChart’ from the Toolbox into each cell. The dayCharts are labeled dayChart1 and dayChart2.
The purpose of two charts is to show yesterday’s data in dayChart1, and today’s data in dayChart2.
The layout shown in the designer is correct.
When running the program dayChar1 is on top of dayChart2. This is the bug.
Charles
! [image.png] (https://aka.ms/dc/image?name=B742d566573f8443d844a6422155918ff637780528696633101_20220117-134748-image.png&tid=742d566573f8443d844a6422155918ff637780528696633101)
Original Comments
Feedback Bot on 1/18/2022, 11:41 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Vino wang [MSFT] on 1/19/2022, 02:54 PM:
Thanks for reporting the ticket here to help us improve our Visual Studio. There are two questions need your confirmation:
- Does this problem only reproduced in NET 6.0 Windows Forms projects? Or it also reproduce with the .NET Framework project?
- Does this issue reproduced with Visual Studio 2019?
- Could you please provide us how to create the ‘dayChart’ customer control into Toolbox?
We’re looking forward to hearing from you! Thank you!
Why do we ask for more info?
We try to reproduce all issues reported with the information provided in the description and comments. When we can’t reproduce the issue, we ask you for more information so we can resolve the issue as quickly and efficiently as possible.
In our guidelines, you can get tips on how to provide clear and simple reproducible steps.
Charles Brauer on 1/19/2022, 10:43 PM:
In answer to “Does this problem only reproduced in NET 6.0 Windows Forms projects”. I’m trying convert to .NET Core 6. I don’t have time, nor any good reason, to try other toolkits.
In answer to “Does this issue reproduced with Visual Studio 2019?”. That is a stupid question. I’m not about to load Visual Studio 2019 on my machine.
In answer to “Could you please provide us how to create the ‘dayChart’ customer control into Toolbox?” Why do you ask this question? I showed you the location of my complete reproducible project source code solution on GitHub. You obviously have not looked at it. The source code for “dayChart” is in that project download.
Charles
Vino wang [MSFT] on 1/20/2022, 08:46 AM:
In fact, I have tried to clone and run your HedgeToolsCharts project before replying to you, but the project where the custom controls are loaded failure, but it does not affect the reproduction of the problem after adding ChartLibrary and MyLibrary dlls to the Dependence.



Now my problem is to know how to create that control, I can try to create my own project just try the custom controls you mentioned to see if I can reproduce the problem easily without your project. I asked you the first two questions to confirm whether this is a regression problem and whether it is a core-specific problem, because your project seems to be a core project.
Could you please give me a complete project that can load successfully? Thank you very much
Charles Brauer on 1/21/2022, 00:49 AM:
Try the GitHub download again. It’s a new version.
Original Solutions
(no solutions)
This issue has been moved from a ticket on Developer Community.
Hello Microsoft,
I’m trying to convert my Windows Desktop Apps to Windows Forms and .NET Core 6.
I have discovered a bug in the code produced by Visual Studio 2022.
I have put my reproducible solution on GitHub at https://github.com/CBrauer/Microsoft-2022-bug.
When running the program, you will see a table with four quadrants. In the lower right cell, I have put another table with two cells. I dragged a “dayChart’ from the Toolbox into each cell. The dayCharts are labeled dayChart1 and dayChart2.
The purpose of two charts is to show yesterday’s data in dayChart1, and today’s data in dayChart2.
The layout shown in the designer is correct.
When running the program dayChar1 is on top of dayChart2. This is the bug.
Charles
! [image.png] (https://aka.ms/dc/image?name=B742d566573f8443d844a6422155918ff637780528696633101_20220117-134748-image.png&tid=742d566573f8443d844a6422155918ff637780528696633101)
Original Comments
Feedback Bot on 1/18/2022, 11:41 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Vino wang [MSFT] on 1/19/2022, 02:54 PM:
Thanks for reporting the ticket here to help us improve our Visual Studio. There are two questions need your confirmation:
We’re looking forward to hearing from you! Thank you!
Why do we ask for more info?
We try to reproduce all issues reported with the information provided in the description and comments. When we can’t reproduce the issue, we ask you for more information so we can resolve the issue as quickly and efficiently as possible.
In our guidelines, you can get tips on how to provide clear and simple reproducible steps.
Charles Brauer on 1/19/2022, 10:43 PM:
In answer to “Does this problem only reproduced in NET 6.0 Windows Forms projects”. I’m trying convert to .NET Core 6. I don’t have time, nor any good reason, to try other toolkits.
In answer to “Does this issue reproduced with Visual Studio 2019?”. That is a stupid question. I’m not about to load Visual Studio 2019 on my machine.
In answer to “Could you please provide us how to create the ‘dayChart’ customer control into Toolbox?” Why do you ask this question? I showed you the location of my complete reproducible project source code solution on GitHub. You obviously have not looked at it. The source code for “dayChart” is in that project download.
Charles
Vino wang [MSFT] on 1/20/2022, 08:46 AM:
In fact, I have tried to clone and run your

HedgeToolsChartsproject before replying to you, but the project where the custom controls are loaded failure, but it does not affect the reproduction of the problem after addingChartLibraryandMyLibrarydlls to the Dependence.Now my problem is to know how to create that control, I can try to create my own project just try the custom controls you mentioned to see if I can reproduce the problem easily without your project. I asked you the first two questions to confirm whether this is a regression problem and whether it is a core-specific problem, because your project seems to be a core project.
Could you please give me a complete project that can load successfully? Thank you very much
Charles Brauer on 1/21/2022, 00:49 AM:
Try the GitHub download again. It’s a new version.
Original Solutions
(no solutions)