Auto-Size a User Control

  • Thread starter Thread starter JezB
  • Start date Start date
J

JezB

I want to auto-size a user control based on RadioButton. How do I do this ?
Currently when AutoSize is true it's sizing the control according to the
base RadioButton class and how big IT thinks it should be - so how do I
override this and set my own size? I want to perform a MeasureString in the
size calculation so I'll need a Graphics object.

Further to this, can I also set the default Location for the control ? If so
how ?
 
My guess is you should turn AutoSize OFF and then set up the dimensions
manually using the .Width and .Height members of the control...
 
Back
Top