winforms - How to modify a form property for more than one forms in c# -
i want know if can modify form property 1 time , have apply forms (design-time).
i have 25 forms in c# project. need change size, same value. takes long time change size 1 one. thus, looking way change sizes 1 time , apply forms using visual studio.
for winforms, vs designer write piece of code that's run in constructor (within initializecomponent
), , code in turn saved in "formname.designer.cs" file.
based on comment enigmativity, need edit file , replace line of code gives forms sizes. can done "replace in files" function. line:
this.clientsize = new system.drawing.size(269, 77);
in .designer.cs files (of course actual size different, cautious search expression). replacing numbers new size trick. make sure forms' designers closed don't overwrite changes.
Comments
Post a Comment