Solved

How to delete a font with VB6?

Posted on 1998-11-23
2
507 Views
Last Modified: 2013-12-03
How can I delete a font with VB6?

I'm aware of the API calls below, but these don't remove the actual font from the registry or the Fonts folder...
Call RemoveFontResource(Fontname)
Call SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0)

A small sample would be great!
0
Comment
Question by:dvbasic
[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 8

Accepted Solution

by:
MikeP090797 earned 100 total points
ID: 1446287
You can use ShGetSpecialFolderLocation with CSIDL_FONTS to get the directory where the fonts are stores, and just remove the file manualy
0
 

Author Comment

by:dvbasic
ID: 1446288
The ShGetSpecialFolderLocation with CSIDL_FONTS returns the place where the fonts are stored. Not how to remove any: that is exactly the problem I'm having :
A simple --Kill "C\WINDOWS\FONTS\FONTNAME" -- just doesn't work...


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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

688 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