Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto changing of small font sizes 1

Ken01

Programmer
Aug 8, 2014
64
GB
I am converting a batch of VB6 programs into VB.Net

Most contain many instances of Ariel / MS Sans Serif font size 8 (labels, text boxes etc) and I was wondering
if there was a rapid way of changing these to font size 10 without going through them individually ?
 
In VB6, all *.frm (form) files are just text files and you can open them in Notepad, for example.
You are going to see something like below which you can change, save, an re-open in VB6 IDE

Rich (BB code):
VERSION 5.00
Begin VB.Form Form1
   Caption         =   "Form1"
...
   StartUpPosition =   3  'Windows Default
   Begin VB.TextBox Text1
      BeginProperty Font
         Name            =   "Arial Narrow"
         Size            =   8.25
...
      Text            =   "Text1"
...
   End
   Begin VB.Label Label1
      Caption         =   "Label1"
      BeginProperty Font
         Name            =   "MS Sans Serif"
         Size            =   8.25
...
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
...
 
Thank you.

I most likely should have known that but am beginning to forget
the tips I learned many years ago.
 

Part and Inventory Search

Sponsor

Back
Top