• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 252
  • Last Modified:

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!
0
Karen Wilson
Asked:
Karen Wilson
1 Solution
 
Luis PérezSoftware 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 WilsonAuthor 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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now