Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to delete a font with VB6?

Posted on 1998-11-23
2
Medium Priority
?
516 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…
Suggested Courses

604 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