title: How can move n characters from front of the string to the end continuously every time I press the button?
body: <p>I'm trying to move the first char of the string to the end every time I press the button.</p>
  
  <p>My logic seems to only display the first output again and again after I press the button.</p>
  
  <pre><code>string input = "";
  string manipulated = "";
  int initial;
  
  input = txtInput.Text;
  
  if (txtInput.Text == String.Empty)
  {
      MessageBox.Show("Textbox is empty, please input a string.");
  }
  else 
  {
          for (initial = 1; initial &lt; input.Length; initial++)
          {
              manipulated += input[initial];
          }
          manipulated += input[0];
          lblOutput.Text = manipulated.ToString();
          input = manipulated;
          manipulated = "";
  }
  </code></pre>
  
  <p>E.g.  if I enter "1234" in the text box and press the button, my output should be "2341", then after I hit the button again, the output should move to "3412" .. etc. </p>