Time pass ;)


public string Reverse(string x)
{
char[] charArray = new char[x.Length];
int len = x.Length - 1;
for (int i = 0; i < = len; i++)
charArray[i] = x[len-i];
return new string(charArray);
}

private void txtBox1_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
{
textBox2.Text = Reverse(textBox1.Text);
}

VN:F [1.1.6_502]
Rating: 0.0/5 (0 votes cast)
Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • LinkedIn
  • Live
  • MySpace
  • StumbleUpon
  • Technorati

Related posts:

  1. Strip SQL Comments using RegularExpression with C#
  2. Filter Listbox based on Textbox entry
  3. Find your lucky number in c#
  4. UTF7 Converter
  5. .NET Version Checker