Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Draw text with a shadow


'set form AutoRedraw = True

' Draw the shadow.
form1.ForeColor = vbBlack
CurrentX = 100
CurrentY = 100
Print "Shadow Text"

' Draw the text slightly offset.
form1.ForeColor = vbBlue
CurrentX = 100 - 50
CurrentY = 100 - 50
Print "Shadow Text"