Auto-Size a User Control

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 ?
 
P

Peter Oliphant

My guess is you should turn AutoSize OFF and then set up the dimensions
manually using the .Width and .Height members of the control...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top