The UltraGridBagLayoutPanel doesn't seem to be autoscaling along with the rest of the form.
When I test a form with AutoScaleMode set to Font on 96 and 120dpi (regular and large fonts); the form size scales, the controls scale, but the UltraGridBagLayoutPanel cells don't scale.
In my example, the gridbag is controling the size of group boxes and they are clipping the controls within them.
Can you confirm this behavior? Is this a bug? Is there a workaround?
Thanks for the help
I am also having issues with this.. seems like in certain cases the cells don't resize properly and others it does.
Is there some way to force the control to recalculate and re-layout it's cells?
Greg
After a day and a half of trial and error (could not reproduce my scaling issue on my dev PC) I wound up with this line to fix it:
ultraGridBagLayoutPanel3.SetPreferredSize(currentTaskLabel,new Size((int)(ultraGridBagLayoutPanel3.GetPreferredSize(currentTaskLabel).Width * scaleX),(int)(ultraGridBagLayoutPanel3.GetPreferredSize(currentTaskLabel).Height * scaleY)));
Basically, use code to scale preferred size of each control on load.
Hopefully this saves someone else a lot of pain.