Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,

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

Regards!
V G S Naidu
Posted
Updated 13-Feb-12 17:16pm
v2

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.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 13-Feb-12 20:39pm    
Totally agree, my 5.

I've explained how to do it in further detail, please see my answer.
--SA
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 http://msdn.microsoft.com/en-us/library/system.windows.forms.form.aspx[^]).

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[^].

—SA
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900