Simple 3D Text on a Form

By | 2019-04-12

Here is some simple code that makes the printed text look sorta 3d, with no OCX or API.

Private Sub Form_Load()

   Dim ShadowX
   Dim ShadowY
            'Clear Form1
   Form1.ScaleMode = 3      'Set Scalemode to pixel
   Form1.ForeColor = vb3DShadow 'Change the Forecolor of
            'Form1 to Shadow Color (Dark grey)
   ShadowY = 5         'Set The Top of the Shadow
   ShadowX = 5      'Set The Left of the Shadow
   For I = 0 To 5
      CurrentX = ShadowX + I
      CurrentY = ShadowY + I
      If I = 5 Then Form1.ForeColor = vbWhite 'Change the Color to White
      Form1.Print "Text in 3D. No VBX/OCX/API!"
   Next

End Sub

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.