by David Stephens (1 Submission)
Category: Graphics
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(3 Votes)

Control the transparency of text on a form. There are a lot of examples on VBC of Alphablend, GDI and transparency, but none brings all these together to demonstrate fading text or translucent text on a background.
This code uses only one picturebox. It copies the images to memory, prints text on the picturebox with the drawtext API and then alphablends the newly printed box with the original in memory to create translucence.
Download Translucent Text (46 KB)