473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to I change the default font in VB6

BKM
Is there a way that I can change the default font in VB6 so I don't have to
constantly change the font of each new control that I add to my project?
Jul 17 '05 #1
3 13181
> Is there a way that I can change the default font in VB6 so I don't have
to
constantly change the font of each new control that I add to my project?


If you change the Font properties for the Form first, then every control you
add to that Form will inherit the font settings from the Form. You could set
that up before hand and then save your project as a Template, although that
wouldn't help you any if you added a 2nd form to the project (you would have
to remember to set that up separately). Something else you could do is
select all of the controls that have a Font property at the same time
(Shift-Click to sequentially select each control); you can then change the
Font property and it will apply to all selected controls.

Rick - MVP
Jul 17 '05 #2
"Rick Rothstein" <ri************@NOSPAMcomcast.net> wrote in message news:<qc********************@comcast.com>...
Is there a way that I can change the default font in VB6 so I don't have

to
constantly change the font of each new control that I add to my project?


If you change the Font properties for the Form first, then every control you
add to that Form will inherit the font settings from the Form. You could set
that up before hand and then save your project as a Template, although that
wouldn't help you any if you added a 2nd form to the project (you would have
to remember to set that up separately).


unless, of course, you use your own form template instead of the standard one
Jul 17 '05 #3
> > > Is there a way that I can change the default font in VB6 so I don't
have
to
constantly change the font of each new control that I add to my
project?
If you change the Font properties for the Form first, then every control you add to that Form will inherit the font settings from the Form. You could set that up before hand and then save your project as a Template, although that wouldn't help you any if you added a 2nd form to the project (you would have to remember to set that up separately).


unless, of course, you use your own form template instead of the standard

one

Well, you caught me. I've never created my own templates before (never found
the setting up of a project to be that much of a problem), so I relied on my
memory of past postings on this subject for my answer. All I remembered
anyone talking about were project templates. Your post made me look... how
about that, you can set up templates for almost everything. Also interesting
is there appears to be pre-defined code module templates for loading
resources and for registry access.

For anyone wondering where this template "stuff" is at, go to your

"c:\Program Files\Microsoft Visual Studio\VB98\Template"

directory. Under it is several more directories, one for each type of entity
for which a templates are already stored and in which you can store your own
templates. Just set up the entity the way you want it and save it to the
appropriate directory for that entity. For example, set up a Form with all
of the pre-set properties the way you want it and then save that form
(right-click the Form in the Project window and select Save or SaveAs) to
the Forms directory under the Template directory whose path I listed above.
After that, when you do a "Project/Add XXX" (where XXX is the type of entity
you are adding to your project), your template will be listed along with the
other pre-defined ones... just select it.

Rick - MVP
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

55
by: Haines Brown | last post by:
I've been setting font-size 1em; as the default in my style sheets. Until now, that seemed to be ok. But now I'm beginning to wonder. My aim is to have an easily readable, but not overly large...
54
by: Brett Baisley | last post by:
Hello, I am trying to figure out how to change the default font-family and font-size. I tried adding this to the BODY section, but it didn't work. I tried to the P section, but they are not...
27
by: skeeterbug | last post by:
please see http://www.geocities.com/operationsengineer1/test.htm for an idea of how i want my logo header div to be layed out. when i went to resize "Test" to 2em (from 1em), this is what...
2
by: Woody Splawn | last post by:
When placing labels and text boxes on winforms they are coming up by default in a size that is just a little too small. How do I change this so that in the future they will come up with a bigger...
4
by: Matt | last post by:
Another interesting issue: I set the default font on most of my forms to what I want the text in my controls to show up as (say, Verdana 9pt.), and then just change the font on labels and buttons...
3
by: MLH | last post by:
Without modifying the default font settings everywhere, is there any way to specify it for just message boxes? MsgBox "I would like this text to be larger for all message boxes." ???
8
by: Ronald S. Cook | last post by:
Is there a way I can change the default font size in my Windows project? Thanks
3
by: wvmitchell | last post by:
Is there a way to do this? This is for my own benefit while developing in Access, not for the users. Used to be that you could change UTILITY.MDA in Access 2.0 but I can't find the equivalent for...
58
by: Don Li | last post by:
I've tried <body style="font-family:Verdana,Arial,Helvetica;font-size:0.8em;"> or <body style="font-family:Verdana,Arial,Helvetica;font-size:11pct;"> or <body...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.