Another Custom Control Question

  • Thread starter Thread starter Scott Meddows
  • Start date Start date
S

Scott Meddows

How do I also keep my user control from being resized vertically but not horizontally?

thanks again
Scott
 
Hi scott
What you need to do is to overload the size property of your usercontrol
class so that it would set and get the Height ( as normal ) but only get
the width ( and don't allow it to be set ) .
hope this helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Is there an easy way to lock it down to not move? Like how the textbox control does? Or does this require a special designer.
 

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