Solved

Changing a property for all forms in an application

Posted on 2013-06-26
2
245 Views
Last Modified: 2013-06-26
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
Comment
Question by:Karen Wilson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
Luis Pérez earned 500 total points
ID: 39278092
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
 

Author Closing Comment

by:Karen Wilson
ID: 39278186
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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question