This is a migrated thread and some comments may be shown as answers.

RadPanel and RadLabel anchor problem

3 Answers 179 Views
Panel
This is a migrated thread and some comments may be shown as answers.
Mathieu Roy
Top achievements
Rank 1
Mathieu Roy asked on 09 Oct 2009, 05:47 PM

Hi,

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.Controls.Add(Me.RadLabel1)

 

 

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"

 

 

 

Me

 

.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:

?me.RadLabel1.Location

{X = 77 Y = 67}

Empty: {X = 0 Y = 0}

IsEmpty: False

X: 77

Y: 67


Any idea of what's going wrong?

3 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 12 Oct 2009, 08:18 AM
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,
Nick
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.
0
Donna
Top achievements
Rank 1
answered on 17 Aug 2010, 09:33 AM
What's up everyone, I'm new to the forum and just wanted to say hey. Hopefully I posted this in the right section!
0
Stefan
Telerik team
answered on 20 Aug 2010, 11:56 AM
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,
Stefan
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
Tags
Panel
Asked by
Mathieu Roy
Top achievements
Rank 1
Answers by
Nick
Telerik team
Donna
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or