Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
TitleDraw text with a shadow
Keywordsdraw text, label, shadow
CategoriesGraphics
 

Draw the shadow. Then draw the text on top slightly offset.

 
Private Sub Form_Load()
    AutoRedraw = True
    ScaleMode = vbPixels

    ' Select a nice big font.
    With Font
        .Name = "Times New Roman"
        .Bold = True
        .Size = 48
    End With

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

    ' Draw the text slightly offset.
    ForeColor = vbBlue
    CurrentX = 10 - 3
    CurrentY = 10 - 3
    Print "Shadow Text"
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated