FontTransparent Property Example

This example prints text on top of a graphic in a PictureBox control. Put a PictureBox on a form, set its AutoSize property to True, and load its Picture property with a bitmap (.bmp) file. To try this example, paste the code into the Declarations section of a form, and then press F5 and click the form twice.

Private Sub Form_Click ()
   ' Toggle property.
   Picture1.FontTransparent = Not Picture1.FontTransparent 
 Picture1.Print "Demo of FontTransparent property."
End Sub