Jump to content

Making a letter messer,l33t speaker & turning text upside down.

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Demon

Demon

    Newbie

  • Members
  • PipPip
  • 18 posts
Explanation

This will use the replace command to replace a letter with some thing else:

Where to get different styles

Messletterscom is the best place I know of.

What you'll need

As many buttons as you'd like to have styles.
A text box

The code

You want it to replace text so the code would be :

TextBox1.Text = TextBox1.Text.Replace("a", "4")

This can be done a - z for a l33t translator

to translate back you would need

TextBox1.Text = TextBox1.Text.Replace("4", "a")

The clear code would be:

Textbox1.Text = "" or Textbox1.Text = "Your text will be shown here"

To do this you'll need different buttons for different styles and to add much more to the translate back.

Enjoy

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
Nice tutorial Demon! I'll rep you.

These types of projects are always good and fun to do for a beginner. For example someone could put the translator in a function: sub englishTo1337() and sub 1337ToEnglish() etc. Maybe you could add some select box action and make a full blown translator with this. :)
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
Jarryd

Jarryd

    Learning Programmer

  • Members
  • PipPipPip
  • 63 posts

Quote

TextBox1.Text = TextBox1.Text.Replace("4", "a")

In doing something like this you could turn it into your own cryptographic language, Meaning you could make a basic encrypter or decrypter..

Good job :D

#4
Demon

Demon

    Newbie

  • Members
  • PipPip
  • 18 posts
Thank you = D