Beispiel #1
0
 private void PostText_KeyUp(object sender, KeyEventArgs e)
 {
     if (CommandHandled || Tweeted)
     {
         try
         {
             PostText.SelectionStart--;
             PostText.Text           = PostText.Text.Remove(PostText.SelectionStart, 1);
             PostText.Text           = PostText.Text.Replace("\n", "").Replace("\r", "");
             PostText.SelectionStart = PostText.Text.Length;
             PostText.Update();
         }
         catch
         {
         }
         finally
         {
             CommandHandled = Tweeted = false;
         }
     }
 }