Last Updated: 31 Jan 2024 13:07 by ADMIN
Release R3 2020 (LIB 2020.2.727)
Created on: 07 Jul 2020 20:09
Category: Label
Type: Bug Report
RadLabel: Right anchor controls (Labels, Textboxes) change their location after re-opening the form in the designer



We recently upgraded the Telerik UI for Winforms for our project to 2020.2.512, after the upgrade we noticed some controls got re-positioned, if we keep the forms unopened in Visual Studio it would be okay, however, once we opened the forms, some controls (those with anchor set to Right) would have their location changed suddenly.  If we change the location property at design time and run the project, it may be fine, but once we close the form and re-open it, the control location would be reset.


We have prepared a testing project for your reference.

1) In the group box on the LHS, there are two controls that have set anchor to Top, Right: lnkViewCriteria and lnkClearSearchCriteria 

In Design mode, change their location as follows:

> lnkViewCriteria: Location = 130,9

> lnkClearSearchCriteria: Location = 190, 9


2) Similarly, in the panel on the RHS, there are two controls that have set anchor to Top, Right: lblProjects and rtxtProjects

In Design mode, change their location as follows:

> lblProjects: Location = 600,1

> rtxtProjects: Location = 333,9


3) Close the form in design mode, then re-open it.  The controls location will be changed and hidden from the form.  


4) Make any change to the form, save & run the project, it will save the new location of the controls as well so that those controls would be out of sight permanently until you notice it.


It was working fine before the upgrade, there are many forms in our project as well many controls with anchor set to Right.  We do not know how to resolve this, if we change the control location in Design mode, then save & close the form before running the application, it may work fine, but we cannot re-open the form in Design mode because it will reset the control position.  We do not want to go through every controls on our forms to set their location in the code. 


Please help!!! We do not how to proceed with our development!





Attached Files:
Nadya | Tech Support Engineer
Posted on: 31 Jan 2024 13:07

Hello, Eisa,

I would like to note that this issue has already been fixed in our R3 2020 (LIB 2020.2.727) release version. You can also check the feedback item status is "Completed". If you are using this or a later version you should be able to benefit from the introduced fix. Can you please specify which is the specific version that you are using in your project? 

Please let me know if you have further questions. 

Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Posted on: 30 Jan 2024 17:21
Attached Files:
Posted on: 30 Jan 2024 17:02
I have exactly the same problem, but in C#
The control is in the right place on the design page, but when you execute it, the place changes

please help
Nadya | Tech Support Engineer
Posted on: 08 Jul 2020 11:40

Hello, Jane,

The provided project is greatly appreciated.

Following the provided information and the project, I was able to observe the same behavior on my end when closing and reopening the designer form. I have logged this issue on our Feedback portal. You can track its progress, subscribe to status changes, and add your comment to it here. I have updated your Telerik Points as well.

Currently, the possible solution that I can suggest is to remove the anchors at design time and set it at run time in the constructor of the form or in the Load event:

 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
     lblProjects.Anchor = AnchorStyles.Right And AnchorStyles.Top
     rtxtProjects.Anchor = AnchorStyles.Right And AnchorStyles.Top
     lnkViewCriteria.Anchor = AnchorStyles.Right And AnchorStyles.Top
     lnkClearSearchCriteria.Anchor = AnchorStyles.Right And AnchorStyles.Top
 End Sub

I modified the project and attached it to this thread. You can see the result in the gif file.

I hope this helps. if you have further questions please let me know.

Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.