Click here to Skip to main content
13,139,515 members (62,151 online)
Rate this:
Please Sign up or sign in to vote.
See more:

We have Implemented One C# Windows Application and the Project is Almost completed.
In that we have created all the controls and forms with the Normal Size( Size 12)and we also used the janus controls and Telerik control. But client Wants that, Entire Application should be in the maximum size( with Size of 14).To do that we need to resize All the Forms and controls which is time consuming and worthy....
So What i need is ,
I need to Resize(Increase the Size ) all the controls in the form with Little Effort.Please Send me the solution If any Microsoft controls or Properties or Methods Available to automatically or with some changes, the form controls will Change and adjust based on the Increased size of the Form.

Thank YOu

V G S Naidu
Posted 13-Feb-12 2:59am
Updated 13-Feb-12 17:16pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

This should have been part of your form design from Day 1. Now that you're almost done with the app, there's no such thing as "little effort".

If all you're doing is changing the font size of the text in all the controls, then you can open the designer code file and search and replace the Font lines as appropriate. You're still going to have to go through the code to make sure you don't change anything you don't want changed.

If you're looking to size the controls themselves and the font sizes, you're going to have to rework the layout of the form to include TableLayoutPanels and other layout controls as well as moving the controls into the layout panels and setup proper Anchor and Docking of the controls to get the look you want.
SAKryukov 13-Feb-12 20:39pm
Totally agree, my 5.

I've explained how to do it in further detail, please see my answer.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You should have done application layout which automatically adjusts to any form size without even handling the Resize event or overriding of the virtual method OnResize. All should be done using one simple principle: never ever use fixed position and size.

(Please see[^]).

I explained the basic ideas in my past answers, please see:
Zom Out malfunctions when Screen resolution changes[^],
GUI Apperance - C#.Net[^],
this one shows a rudimentary code sample: how to dock button so that it can adjust with the form[^].


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 13 Feb 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100