Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows C#3.5 Forms
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 13-Feb-12 3:59am
Edited 13-Feb-12 18:16pm
v2
Rate this: bad
good
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.
  Permalink  
Comments
SAKryukov at 13-Feb-12 20:39pm
   
Totally agree, my 5.
 
I've explained how to do it in further detail, please see my answer.
--SA
Rate this: bad
good
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 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
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 575
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 369
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,466
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,897


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 13 Feb 2012
Copyright © CodeProject, 1999-2014
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