Resize Behaviour of a Composite Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a composite control which is essentially a panel with 4 labels and 4 check boxes
I have designed the control in VisualStudio form designer. I dont want to allow the user to change the size of this control at design time. How can I acheive that
I was looking into the ImmutableObject attribute to set. But I donot have any public set property ( setters) which does set the size property. Any help is greatly appreciated.
 
You have a property called "DesignTime" that basically tells you if the
control is opened in design mode. If so, you can hook OnSizeChanged and
reset the size back to what you want.

HTH

-vJ
 

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

Back
Top