Hello,
I'm using the Dec 3rd version of the WinForms components. After upgrading some of our forms don't look right. What I determined was a RadLabel created dynamically has a size of (0, 0) until it is assigned to a container. Is there a way to know the size of the RadLabel before it has a parent? Our current logic relies on the size of the labels to build the container form so it is broken because of this change.
Here is some sample code to show the issue:
Thanks,
-Gary
I'm using the Dec 3rd version of the WinForms components. After upgrading some of our forms don't look right. What I determined was a RadLabel created dynamically has a size of (0, 0) until it is assigned to a container. Is there a way to know the size of the RadLabel before it has a parent? Our current logic relies on the size of the labels to build the container form so it is broken because of this change.
Here is some sample code to show the issue:
RadLabel rl = new RadLabel(); |
rl.Text = This is a test; |
rl.Location = new Point(20, 20); |
// rl.Size is (0,0) at this point |
this.Controls.Add(rl); |
// now rl.Size is correctly showing (67, 14) in this test |
Thanks,
-Gary