المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Control relocated if changing fontsize in designer



C# Programming
11-26-2009, 11:30 AM
Hi folks...
hope someone can help. I created a simple UserControl in a C# Project (VS9) that basically consists of a Label placed on that Usercontrol.

The following happens:
1) place the Usercontrol "Label" via designer on another UserControl "Parent"
2) change the Fontsize of "Label" to another value (e.g. from 9,25 to 14,75)
3) see the "Label" Control is relocated from original position to a new position on "Parent".

It seems to me that the control is relocated due to some scaling issues but I can't figure out what exactly is the problem. I am sure it is no big thing, I need the Usercontrol "Label" to stay in place instead of beeing relocated automatically in design view. Any ideas?