Changing a property for all forms in an application

I have MANY applications with multitudes of forms that I need to change the AutoScaleMode to DPI.  These are Visual Studio applications in vb.net

HELP and thanks for any suggestions!
Karen WilsonProgrammerAsked:
Who is Participating?
 
Luis PérezConnect With a Mentor Software Architect in .NetCommented:
If you want to change directly the form files (without opening it in Visual Studio), I suggest to you to download any "Grep" software. For example, WinGrep.

You can do a search for the string
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
... because this is the string defining the AutoScaleMode in Windows Forms (you can find it in the Form.Designer.vb file). And once the files have been found, you can do a Replace with the string
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi

Hope that helps.
0
 
Karen WilsonProgrammerAuthor Commented:
I did a find/replace for the string in the application.  

1)  Glad I asked
2)  I owe you a cup of coffee
3) MANY THANKS
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.