By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

Another Custom Control Question

P: n/a
How do I also keep my user control from being resized vertically but not horizontally?

thanks again
Scott
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

Nov 21 '05 #2

P: n/a
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.

"Mohamoss" <mo************@egdsc.microsoft.com> wrote in message news:Xi**************@cpmsftngxa06.phx.gbl...
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

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.