Windows Develop Bookmark and Share   
 index > Windows Forms General > Scaling Windows Forms
 

Scaling Windows Forms

Hi

I've got a window with 2 panels (for video output), textbox and other controls. Now if I want to resize the window or change the resolution it does not scale. I read the following: http://msdn2.microsoft.com/en-US/library/ms229605.aspxbut still don't know how to do it. Where can I find good examples?

Thank you!

kastanienreis  Sunday, October 29, 2006 9:29 AM

Hi,

use the Dock property and set it to Fill to always resize a control to the size of its container.

You could then use a SplitContainer as the outermost container in your form where it fills the complete form (Dock == Fill) and place two other controls in its left and right panel also with Dock == Fill. If you need more controls you could also put splitcontainer in splitcontainers. That depends on how you layout your controls and how many of them should be autosized.

--
SvenC

SvenC  Sunday, October 29, 2006 2:58 PM

Use, Controls' Anchor and Dock properties depending on the Need! Its really very simple!

I hope this will Help!

Best Regards,

RizwanSharp  Sunday, October 29, 2006 7:31 PM

You can use google to search for other answers

Custom Search

More Threads

• Label Font.Size
• Screen flicker when setting Opacity
• How to point directly to selected text in a textBox and display it?
• Loading Combo Box Asynchrononus
• Disabling visual styles for a specific form/control
• Font Fallback for Unicode Strings
• Making a form modal on a thread
• ToolStripMenuItem events and items at run time
• Basic Help: Confirmation of Cancel
• How to create object of IE from process object