RadPanel and RadLabel anchor problem

4 posts, 0 answers
  1. Mathieu Roy
    Mathieu Roy avatar
    9 posts
    Member since:
    Jun 2009

    Posted 09 Oct 2009 Link to this post


    I have a really strange situation. I have a form that has a radpanel control and all my others controls are on the panel. If I put a RadLabel on the right bottom and if I set the anchor of the label to bottom-right, the location of the label is change.

    Here is my setting :





    Me.RadPanel1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _



    Or System.Windows.Forms.AnchorStyles.Left) _



    Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)






    Me.RadPanel1.Location = New System.Drawing.Point(603, 385)



    Me.RadPanel1.Name = "RadPanel1"






    Me.RadPanel1.Size = New System.Drawing.Size(200, 100)



    Me.RadPanel1.TabIndex = 14



    Me.RadPanel1.Text = "RadPanel1"






    .RadLabel1.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)



    Me.RadLabel1.Location = New System.Drawing.Point(138, 83)



    Me.RadLabel1.Name = "RadLabel1"



    Me.RadLabel1.Size = New System.Drawing.Size(59, 14)



    Me.RadLabel1.TabIndex = 0



    Me.RadLabel1.Text = "RadLabel1"


    At runtime in immediate windows, i get:


    {X = 77 Y = 67}

    Empty: {X = 0 Y = 0}

    IsEmpty: False

    X: 77

    Y: 67

    Any idea of what's going wrong?
  2. Nick
    Nick avatar
    767 posts

    Posted 12 Oct 2009 Link to this post

    Hi Mathieu Roy,

    Thank you for contacting us.

    We are aware of this bug. This happens only in VB at Design Time. The problem is caused by a difference between C# and VB serializers. I can suggest that you remove the anchor while developing and then set is as a final stage of development for a particular form. As far as we know the bug is not present at Run Time. 

    Do not hesitate to write me back if you have further questions.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Donna
    Donna avatar
    1 posts
    Member since:
    Aug 2010

    Posted 17 Aug 2010 Link to this post

    What's up everyone, I'm new to the forum and just wanted to say hey. Hopefully I posted this in the right section!
  4. Stefan
    Stefan avatar
    2911 posts

    Posted 20 Aug 2010 Link to this post

    Hello back to you Donna,

    We are glad to welcome you to our forums.

    If you have not already downloaded the Trial version of our controls, it is available in the Downloads section of your account. Please note that in the trial period you can also take advantage of our support services, so if you need any assistance using our controls, do not hesitate to contact us.
    Kind regards,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top