Solved

How to delete a font with VB6?

Posted on 1998-11-23
2
488 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
2 Comments
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 100 total points
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

743 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