Solved

Change font style, size, ect

Posted on 1998-09-01
2
150 Views
Last Modified: 2013-12-03
I am using the common dialog control.  I want to use it to change the fonts of my objects.  Is there a way to dynamically change all the fonts?  I have the common dialog control working, but I have to specifiy all controls on my form, I want all my command buttons and labels to change to the specific font and size, etc.

any Ideas?
0
Comment
Question by:check1
2 Comments
 
LVL 9

Accepted Solution

by:
Dalin earned 70 total points
Comment Utility
check1;
You can do something like this.
Regards
Dalin


Dim myControl as Control

On error goto trap
For each myControl in myform
     myControl.font = YourSelected fonts
  Next
'Exit here
Trap:
  Err.clear
Resume next
0
 

Author Comment

by:check1
Comment Utility
Thanks!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 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

10 Experts available now in Live!

Get 1:1 Help Now