C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2722
Number of posts: 5749

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Resizing user controls?? Posted by monoman81 on 7 Feb 2006 at 9:32 AM
Hi, i send you my regards.

Look, i'm new in C# and i'm developing a control that binds a listview with a table of a MySql database. I'm beginning and i find my first question.

How can i do that when the control in design time is resized by the developer or myself all the inner controls in my own control resizes too to mantain the scale??

Thanks for your help... Have a nice day...
Report
Re: Resizing user controls?? Posted by IDK on 7 Feb 2006 at 10:39 AM
: Hi, i send you my regards.
:
: Look, i'm new in C# and i'm developing a control that binds a listview with a table of a MySql database. I'm beginning and i find my first question.
:
: How can i do that when the control in design time is resized by the developer or myself all the inner controls in my own control resizes too to mantain the scale??
:
: Thanks for your help... Have a nice day...
:
Set the new proporsions.
If it's pure scaling, use this line
newSize = oldSize * oldControlSize / newControlSize;
Report
Re: Resizing user controls?? Posted by monoman81 on 7 Feb 2006 at 1:41 PM
: : Hi, i send you my regards.
: :
: : Look, i'm new in C# and i'm developing a control that binds a listview with a table of a MySql database. I'm beginning and i find my first question.
: :
: : How can i do that when the control in design time is resized by the developer or myself all the inner controls in my own control resizes too to mantain the scale??
: :
: : Thanks for your help... Have a nice day...
: :
: Set the new proporsions.
: If it's pure scaling, use this line
: newSize = oldSize * oldControlSize / newControlSize;
:

Thanks so much to take your time to look through my issue. I'll try what you're proposing me. Have a nice day...
Report
Re: Resizing user controls?? Posted by weicco on 7 Feb 2006 at 10:56 PM
This message was edited by weicco at 2006-2-7 22:57:25

: Hi, i send you my regards.
:
: Look, i'm new in C# and i'm developing a control that binds a listview with a table of a MySql database. I'm beginning and i find my first question.
:
: How can i do that when the control in design time is resized by the developer or myself all the inner controls in my own control resizes too to mantain the scale??
:
: Thanks for your help... Have a nice day...
:

Try changing Control.Anchor property to what ever suits your needs. Also check out Control.Dock property.

EDIT: Change those values in the Design View to see what they do...


Report
Re: Resizing user controls?? Posted by monoman81 on 8 Feb 2006 at 7:49 AM
: This message was edited by weicco at 2006-2-7 22:57:25

: : Hi, i send you my regards.
: :
: : Look, i'm new in C# and i'm developing a control that binds a listview with a table of a MySql database. I'm beginning and i find my first question.
: :
: : How can i do that when the control in design time is resized by the developer or myself all the inner controls in my own control resizes too to mantain the scale??
: :
: : Thanks for your help... Have a nice day...
: :
:
: Try changing Control.Anchor property to what ever suits your needs. Also check out Control.Dock property.
:
: EDIT: Change those values in the Design View to see what they do...
:
: Thanks... i'll try this solution too...
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.