Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: updating dataset through datagrid Pin
STW10-Sep-03 22:39
STW10-Sep-03 22:39 
GeneralRe: updating dataset through datagrid Pin
zuhx11-Sep-03 5:47
zuhx11-Sep-03 5:47 
GeneralRe: updating dataset through datagrid Pin
STW11-Sep-03 10:17
STW11-Sep-03 10:17 
GeneralRe: updating dataset through datagrid Pin
zuhx12-Sep-03 6:03
zuhx12-Sep-03 6:03 
GeneralRe: updating dataset through datagrid Pin
STW12-Sep-03 7:23
STW12-Sep-03 7:23 
GeneralRe: updating dataset through datagrid Pin
STW12-Sep-03 8:02
STW12-Sep-03 8:02 
QuestionHow to Scale down controls on a window Pin
sumeat9-Sep-03 10:04
sumeat9-Sep-03 10:04 
AnswerRe: How to Scale down controls on a window Pin
STW9-Sep-03 21:51
STW9-Sep-03 21:51 
I don't think that there exists a "Scale" Methode for this problem.

But I see that your code above is the solution for your problem. You just have to iterate through the Controls, resize them and set the right position. Perhaps you'll find a good common method for this. Maybe the Anchor property of a Control helps you.

Perhaps this may help too:


Array a=new ArrayList();
this.form.Controls.CopyTo(a,0) //Copies the Controls to an array

Form f=new Form();


foreach(object o in a)
{
Control ctrl=(Control)o; //get the control
ctrl=this.RecalcControl(ctrl) //Common Method to fix size and location

f.Controls.Add(ctrl);
}

void RecalcControl(Control ctrl)
{
ctrl.Size=..
ctrl.Location=..
return ctrl;
}

Your problem will be a good education for C#

Good luck

Stefan W.


GeneralLooking for a good book on C# Pin
Flack9-Sep-03 9:54
Flack9-Sep-03 9:54 
GeneralRe: Looking for a good book on C# Pin
gadgetfbi9-Sep-03 13:15
gadgetfbi9-Sep-03 13:15 
GeneralRe: Looking for a good book on C# Pin
David Stone9-Sep-03 13:44
sitebuilderDavid Stone9-Sep-03 13:44 
GeneralRe: Looking for a good book on C# Pin
Braulio Dez9-Sep-03 23:28
Braulio Dez9-Sep-03 23:28 
GeneralC# Suitable for my new app? please help! Pin
Hydra9-Sep-03 7:53
Hydra9-Sep-03 7:53 
GeneralRe: C# Suitable for my new app? please help! Pin
Mazdak9-Sep-03 9:10
Mazdak9-Sep-03 9:10 
GeneralRe: C# Suitable for my new app? please help! Pin
J. Dunlap9-Sep-03 9:49
J. Dunlap9-Sep-03 9:49 
GeneralRe: C# Suitable for my new app? please help! Pin
monrobot139-Sep-03 13:16
monrobot139-Sep-03 13:16 
GeneralRe: C# Suitable for my new app? please help! Pin
Hydra9-Sep-03 22:15
Hydra9-Sep-03 22:15 
GeneralRunning Windows App over network Pin
Anonymous9-Sep-03 7:01
Anonymous9-Sep-03 7:01 
GeneralRe: Running Windows App over network Pin
joan_fl9-Sep-03 10:28
joan_fl9-Sep-03 10:28 
GeneralRe: Running Windows App over network Pin
Tatham10-Sep-03 6:54
Tatham10-Sep-03 6:54 
Questionwhat's the difference between Byte and byte? Pin
SHenin9-Sep-03 5:45
SHenin9-Sep-03 5:45 
AnswerRe: what's the difference between Byte and byte? Pin
Alvaro Mendez9-Sep-03 6:24
Alvaro Mendez9-Sep-03 6:24 
AnswerRe: what's the difference between Byte and byte? Pin
leppie9-Sep-03 7:06
leppie9-Sep-03 7:06 
GeneralRe: what's the difference between Byte and byte? Pin
David Stone9-Sep-03 8:09
sitebuilderDavid Stone9-Sep-03 8:09 
GeneralWindowsControl Background Pin
Mazdak9-Sep-03 5:14
Mazdak9-Sep-03 5:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.