❔ 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
And setting the fill panel to auto size doesnt change its size even though there is nothing in there 🤔 😢
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.
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.