Solved

How to delete a font with VB6?

Posted on 1998-11-23
2
498 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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
make top menus bigger font 3 76
Using "ScreenUpdating" 6 73
one notepad file content suddenly garbled.. (other notepads are OK in same folder) 3 80
Problem to line 23 54
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

861 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