Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2005

Tip: Looking for answers? Try searching our database.

WinForms Resizing Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Deep Silent Ocean - 23 Sep 2005 01:26 GMT
Hi All

I am facing problem with WinForms resizing problem...

I have DataGrid and couple buttons and groupbox inside winforms.. When I
resize the winform i want to maintain the distance between control
horizontal and vertically. It ok if the control gets resized..
Let me know if someone has logic for it. I know one thing that I can
catch the onResize even of winforms and then I can do some resizing for
other controls

can anyone give me the logic or set of steps for it ?

Deep Ocean
Oliver Sturm - 23 Sep 2005 11:07 GMT
>I am facing problem with WinForms resizing problem...
>
[quoted text clipped - 4 lines]
>the onResize even of winforms and then I can do some resizing for other
>controls

Without seeing the layout of your form, I can't guess what exactly you
want to resize in which way. If you can't do it with the usual mechanisms
of docking and anchoring (a hint: consider using additional invisible
grouping panels), you'll have to calculate the control positions and/or
sizes yourself when the form is resizing.

               Oliver Sturm
Signature

Expert programming and consulting services available
See http://www.sturmnet.org (try /blog as well)

Pan Wen - 23 Sep 2005 23:54 GMT
yes, you should change control position,size and font size.

Pan wen
dotnetskin:  Skinnable User Interface
http://www.dotnetskin.net

>>I am facing problem with WinForms resizing problem...
>>
[quoted text clipped - 12 lines]
>
>                Oliver Sturm
Chris Dunaway - 26 Sep 2005 18:40 GMT
Check out the Anchor and Dock properties of the control and form.  Most
resizing tasks can be performed by setting those properties.

If you have very specialized re-sizing needs, then using the OnResize
event as others have suggested would be appropriate.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.