Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Change font style, size, ect

Posted on 1998-09-01
2
Medium Priority
?
157 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
Dalin earned 280 total points
ID: 1432374
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
ID: 1432375
Thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

647 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