Easy Way to Insert and Center Text on a Picture.

Category:
Miscellaneous
Type:
Snippets
Difficulty:
Beginning
Author:
Mark Balthazor

Version Compatibility:

More information:
I've seen several very complicated ways to insert text into a picture, but then discovered a simple solution. You'll need a picturebox with Autoredraw set to true, a textbox, and a label with Autosize set to true.

You can put this code into a button or a separate procedure.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: