godzcheater

TextGen

Feb 21st, 2012
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.91 KB | None | 0 0
  1.         public static void Gen(ref System.Windows.Forms.Label L, System.String S)
  2.         {
  3.             System.Char[] Alp = @"!#$%&'()-.@[]^_`{}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".ToCharArray();
  4.             for (System.Int32 i = 0; i < S.Length;i++)
  5.             {
  6.                 for (System.Int32 ii = 0; ii < Alp.Length; ii++)
  7.                 {
  8.                     L.Text = S.Remove(i);
  9.                     //System.Threading.Thread.Sleep(trackBar1.Value);
  10.                     System.Threading.Thread.Sleep(50);
  11.                     if (S[i] == Alp[ii])
  12.                     {
  13.                         L.Text += S[i];
  14.                         break;
  15.                     }
  16.                     else
  17.                     {
  18.                         L.Text += Alp[ii].ToString();
  19.                     }
  20.                     Application.DoEvents();
  21.                 }
  22.             }
  23.         }
Advertisement
Add Comment
Please, Sign In to add comment