Link to home
Start Free TrialLog in
Avatar of dvbasic
dvbasic

asked on

How to delete a font with VB6?

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!
ASKER CERTIFIED SOLUTION
Avatar of MikeP090797
MikeP090797

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dvbasic
dvbasic

ASKER

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...