Search Tools Links Login

Easy l† Text!


I've had a lot of people ask me how to create "Elite" text or "Funky" looking text, so here it is. The coding is extremely simple and it's commented. No votes unless this really helps you or something!

Original Author: SeeD

Inputs

Do this:
1) Start up a new project in VB.
2) Add a command button and a Text Box.
3) Thats all! Insert the below code into the command buttons "Click" event.

Code

Private Sub Command1_Click()
Text1.Tag = "" 'clears tag each click
For i = 1 To Len(Text1)
strnew = Mid(Text1, i, 1)
If strnew = "a" Then strnew = "" 'converts each letter
If strnew = "A" Then strnew = "" 'you can edit these
If strnew = "b" Then strnew = "b"
If strnew = "B" Then strnew = ""
If strnew = "c" Then strnew = ""
If strnew = "C" Then strnew = ""
If strnew = "d" Then strnew = ""
If strnew = "D" Then strnew = ""
If strnew = "e" Then strnew = ""
If strnew = "E" Then strnew = ""
If strnew = "f" Then strnew = "ƒ"
If strnew = "F" Then strnew = "F"
If strnew = "g" Then strnew = "g"
If strnew = "G" Then strnew = "G"
If strnew = "h" Then strnew = "h"
If strnew = "H" Then strnew = "H"
If strnew = "i" Then strnew = ""
If strnew = "I" Then strnew = ""
If strnew = "j" Then strnew = "J"
If strnew = "J" Then strnew = ""
If strnew = "k" Then strnew = "l‹"
If strnew = "K" Then strnew = "<"
If strnew = "l" Then strnew = "|"
If strnew = "L" Then strnew = "(_"
If strnew = "m" Then strnew = "m"
If strnew = "M" Then strnew = "/V"
If strnew = "n" Then strnew = ""
If strnew = "N" Then strnew = ""
If strnew = "o" Then strnew = ""
If strnew = "O" Then strnew = ""
If strnew = "p" Then strnew = ""
If strnew = "P" Then strnew = ""
If strnew = "q" Then strnew = "q"
If strnew = "Q" Then strnew = ""
If strnew = "r" Then strnew = "R"
If strnew = "R" Then strnew = "r"
If strnew = "s" Then strnew = "š"
If strnew = "S" Then strnew = "Š"
If strnew = "t" Then strnew = "†"
If strnew = "T" Then strnew = "t"
If strnew = "u" Then strnew = ""
If strnew = "U" Then strnew = ""
If strnew = "v" Then strnew = "V"
If strnew = "V" Then strnew = "/"
If strnew = "w" Then strnew = "vv"
If strnew = "W" Then strnew = "VV "
If strnew = "x" Then strnew = "X"
If strnew = "X" Then strnew = "><"
If strnew = "y" Then strnew = ""
If strnew = "Y" Then strnew = ""
If strnew = "z" Then strnew = "Z"
If strnew = "Z" Then strnew = "z"
'add new character one at a time:
Text1.Tag = Text1.Tag + strnew
Next i
Text1.Text = Text1.Tag
End Sub

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 88 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.