Open sampathnarine opened 3 years ago
Hi Guys,
Can i get any update on this?
I think it was due to behaviour changes I get the same bug when trying to create bounding boxes to draw my own form's window itself.
It is an odd bug that I for 1 need to investigate between net472, and even in net5.0.
Oddly enough on most of my forms it's ok until I get to my settings form then it goes 🔥.
We will need to investigate this a little more deeply. We haven't come to a conclusion just yet.
@dreddy-work can you please take a look to determine what to do with this issue?
@Olina-Zhang could your team please test this to see if its still an issue?
Verified this issue with Sample.zip that provided by user on .NET3.1 & .NET9 & .NET Framework 4.8.1, whose result are same. The position of click button is not aligned with load button. Details as below:
https://github.com/dotnet/winforms/assets/130345015/8dac80e0-3e18-4aca-8e2f-98918f3de258
3.1project
Yes
Problem description:
I have created the Netcore 3.1 project and i have added the datagridview and button in the designer level. Then I have added the button in the constructor of the form and set some location. Please find the code snippet below.
While i open the same application in the netframework, the button location changes. Please refer the below screenshots.
NetCore
NetFrameWork
Expected behavior:
I dont know why the location changes in the Netframework and this location changes should not occur.
Minimal repro:
Run the NetCore project and 2017 project of below attached sample.
Sample.zip