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 / January 2007

Tip: Looking for answers? Try searching our database.

Forms Resizing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
robin9876@hotmail.com - 19 Jan 2007 12:32 GMT
In .Net v2 when a form is resized is it possible to automatically
resize controls such as panels and datagridviews?
Havard Stranden - 19 Jan 2007 15:43 GMT
> In .Net v2 when a form is resized is it possible to automatically
> resize controls such as panels and datagridviews?

Several options exist:
 - Resize your controls manually by handling the Resize event.
 - Use the Anchor and/or Dock properties on your controls to make them
resize and position themselves where you want them to.

MSDN has the documentation for you. :)

Signature

H?vard

robin9876@hotmail.com - 22 Jan 2007 12:42 GMT
I have handled it code on the form resize event, due to the layout of
the form and the options available with Anchor and dock settings.

> > In .Net v2 when a form is resized is it possible to automatically
> > resize controls such as panels and datagridviews?
[quoted text clipped - 5 lines]
>
> MSDN has the documentation for you. :)
Oliver Sturm - 27 Jan 2007 17:15 GMT
Hello robin9876,

>In .Net v2 when a form is resized is it possible to automatically
>resize controls such as panels and datagridviews?

The mechanisms suggested by others in replies to this question are really
those that were commonly used in .NET 1. In .NET 2, several new and
powerful controls have been introduced in the form of the layout
containers. You should have a look at MSDN docs for the FlowLayoutPanel
and the TableLayoutPanel to find out how these work.

               Oliver Sturm
Signature

http://www.sturmnet.org/blog


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.