title: Right to left typing in text box?
body: <p>I have a Currency <code>Textbox</code> with a mask.
  Mask is shown in <code>textbox</code> as <code>--------.--</code></p>
  
  <p>So user types in digits over the mask.</p>
  
  <p>Now customer says he does not want to type in letter from left to right.
  He wants to type from right to left.</p>
  
  <p>Similar to what we have in calculator.</p>
  
  <p>Now I tried changing the <code>textbox</code>'s <code>righttoleft</code> property but that does not help my cause.</p>
  
  <p>In the end I am stuck with handling the key event to manually change the position.
  I am able to change the position but getting stuck completing the logic.</p>
  
  <p>Here's how my code looks like :</p>
  
  <pre><code> void Textbx_KeyDown(object sender, KeyEventArgs e)
      {
  
  
          String temp = T.Text;
          string temp2 = T.Text;
  
          int CursorIndex = T.SelectionStart - 1;
  
          for (int i = 0; i &lt;= CursorIndex; i++)
          {
              if (i == 7)
              {
  
                  temp2 = temp2.Insert(i, temp[i + 2].ToString());
                  temp2 = temp2.Remove(i, 2);
  
                  //i = i + 2;
              }
              else if (CursorIndex == i)
              {
                  temp2 = temp2.Remove(i, 1);
                  temp2 = temp2.Insert(i, temp[i + 1].ToString());
              }
  
              else
              {
                  //   T.Text = T.Text.Insert(i + 1, "_");
  
                  temp2 = temp2.Insert(i, temp[i + 1].ToString());
                  temp2 = temp2.Remove(i + 1, 1);
  
              }
  
          }
          T.Text = temp2;
          // T.Text = T.Text.Insert(CursorIndex-1, temp[CursorIndex].ToString());
          if (CursorIndex != -1)
              T.SelectionStart = CursorIndex - 1;
  
  
      }
  </code></pre>
  
  <p>Is there a better way to do this? If not how should I go about completing the logic?</p>