Can't remove \r and \n in textbox c#
<p>I using a textbox in c# and using a key press event that press enter and perform a button click action when the window is focus on that textbox</p>

<p>I notice that when the first time i perform "enter" and the event goes well.
When i go back to the previous page and i perform again same thing. i saw that the textbox have \r and \n even i already reset the textbox like</p>

<pre><code>  textbox.Text = "";
  //OR
  textbox.Clear();
</code></pre>

<p>But somehow when i debug the \r and \n still exist in the textbox.</p>

<p>Did i do any wrong or any way to prevent such case happen?</p>