How can I transfer text from one textbox to another textbox without it looping and not sending the text?
<p>I have searched for what I am asking of you but I may have been wording it wrong, so I hope what I have typed is easy to understand.</p>

<p>I am creating a Css formatter with two textboxes using <code>WinForms</code> </p>

<p>I would like it to take a css long format code in the first <code>textBoxLongFormat</code> then appear in the second, <code>textboxShortFormat</code>, as css short code. </p>

<p>I have a bit of code for both text boxes and a separate class of other code for the behind the scenes to change the format. </p>

<p>The class works but I’m having a problem with <code>textBoxLongFormat</code> and I’m guessing it will happen the other way round, the code is looping on its self and not closing, so it’s not sending the format to <code>textBoxShortFormat</code> so nothing happens.</p>

<p>There is something I am doing wrong, I know, but I cannot see it. What is it that I am doing wrong? It will be great to have your help.</p>

<p>Here is the code for the textboxes if it helps.</p>

<p>What is it that i need to add or to make it work?</p>

<pre><code>    private void textBoxLongFormat_TextChanged(object sender, EventArgs e)
    {
        CssFormatConverter cssLongFormatConverter = new CssFormatConverter();
        string longFormatCss = textBoxLongFormat.Text;
        string shortFormatCss = cssLongFormatConverter.ToShortFormat(longFormatCss);
        textBoxShortFormat.Text = shortFormatCss;
    }

    private void textBoxShortFormat_TextChanged(object sender, EventArgs e)
    {
        CssFormatConverter cssShortFormatConverter = new CssFormatConverter();
        string shortFormatCss = textBoxShortFormat.Text;
        string longFormatCss = cssShortFormatConverter.ToLongFormat(shortFormatCss);
        textBoxLongFormat.Text = longFormatCss;
    }
</code></pre>

<p>Thank you in advance</p>
