PC Review


Reply
Thread Tools Rate Thread

Another Custom Control Question

 
 
Scott Meddows
Guest
Posts: n/a
 
      16th Aug 2004
How do I also keep my user control from being resized vertically but not horizontally?

thanks again
Scott


 
Reply With Quote
 
 
 
 
Mohamoss
Guest
Posts: n/a
 
      17th Aug 2004
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

 
Reply With Quote
 
Scott Meddows
Guest
Posts: n/a
 
      17th Aug 2004
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" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
question on best way to get a control's property from custom control TS Microsoft ASP .NET 5 6th Jul 2007 02:41 AM
Web Custom control question =?Utf-8?B?VG9ueSBIZWRnZQ==?= Microsoft Dot NET 2 24th Jun 2006 01:00 AM
Web Custom Control Question? =?Utf-8?B?UmFlZCBTYXdhbGhh?= Microsoft ASP .NET 1 13th Aug 2005 02:21 PM
Custom Control GDI+ Question Phill Microsoft C# .NET 2 16th Nov 2004 01:35 PM
question with custom control and for each hans.werner Microsoft VB .NET 3 19th Sep 2003 10:39 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:15 AM.