Web Development

General discussion


Changing the default control font

By MaryWeilage Editor ·
This week's Visual Basic newsletter explains how to change the default control font.

Will you change the default control font? Can you think of any other methods besides the two author Peter Aitken outlines that would simplify this process?

If you aren't subscribed to our free Visual Basic newsletter, click the following link to automatically sign up:

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

changing default fonts painlessly...

by ianbrodie In reply to Changing the default cont ...

just change the font on the form BEFORE you add any controls, then when the controls are added they assume the same font as the form. No errors, no code, no hassle.


Collapse -

Using A New Form Template

by greenberrie In reply to changing default fonts pa ...

This works if all the forms in a particular app uses the same font each time.
In a new application, create a form with the new default font that you want.
Save it to Program Files\Microsoft Visual Studio\VB98\Template\Forms
Next time you go to add in a new form, it will show up in the list of forms to choose from.

Collapse -

Nice Thing About...

by mattohare In reply to changing default fonts pa ...

Nice thing about changing changing the form's font before adding controls, is that the form module has less code. This can reduce the size of your executable by quite a bit.

My first step of making a form is setting all the form's properties anyway.

Collapse -

Easily Freshen Up Existing VB Projects

by tdambra In reply to Changing the default cont ...

To easily change the font in an existing project and give all forms a sharper modern look:

1. Using NoteTab Lite (freeware) open all the .frm files in your project.

2. Using the global Replace command, replace "MS San Serif" with "Tahoma", and click Save All documents. Use the Tahoma font as it takes up exactly the same screen area as MS Sans Serif.

Related Discussions

Related Forums