Solved

Changing a property for all forms in an application

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now