Solved

Changing a property for all forms in an application

Posted on 2013-06-26
2
242 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

829 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