By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,107 Members | 1,221 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,107 IT Pros & Developers. It's quick & easy.

How to I change the default font in VB6

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
> 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

P: n/a
"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

P: n/a
> > > 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 discussion thread is closed

Replies have been disabled for this discussion.