C
C#13mo ago
Conner

❔ AutoSize always shrinks my control to 1 px even with content

I have a User Control that has 3 panels in it. One docked to the top, one to fill and one to the bottom. Both the top and bottom panel have content in them and dont have auto size set. Yet for some reason if I enable auto size on the main Control, it shrinks down to the smalles possible size! I really don't understand why this happens.
3 Replies
Conner
Conner13mo ago
And setting the fill panel to auto size doesnt change its size even though there is nothing in there 🤔 😢
HimmDawg
HimmDawg13mo ago
I think what you are trying to do is not possible via designer. You should calculate the width in a separate method in your usercontrol.
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.