C# String Property and string literal concatenation issue
<p>I am a bit new at C# and I have run into a string concatenation issue. I am hoping someone might be able to give me a hint and help me resolve this. I have searched Google extensively and have spent more than a week on this so any help/advice would be greatly appreciated.</p>

<p>I have created a custom PathEditor for a string property. The property basically allows the user to key in a file to use in the app. If the file typed in is correct, it shows in the property cell as it should. What I am trying to do is output to the property cell an error message if the file typed in does not exist - I check this in my file validator. Here is the string literal issue.</p>

<p>If I use:</p>

<pre><code>return inputFile+"Error_";
</code></pre>

<p>this works OK and I get the outpur file123.txtError_ in the property grid cell.</p>

<p>If I use:</p>

<pre><code>return "Error_"+inputFile;
</code></pre>

<p>I get only the inputFile without the literal "Error_". Sot he property grid cell shows file123.txt in the property grid cell.</p>

<p>I have checked and inputFile is a string type. Any ideas as to why this is happening?</p>

<p>Also, is there any way to change to font, and/or, color of the message output? I tried to change the background of the property grid cell and I understand that this is not possible to do.</p>

<p>Thank you.
Z</p>

<p>More of the code:</p>

<pre><code>[
Description("Enter or select the wave file. If no extension, or a non .wav extension, is specified, the default extension .wav will be added to the filename."),
GridCategory("Sound"),
Gui.Design.DisplayName ("Input Sound"),
PathEditor.OfdParamsAttribute("Wave files (*.wav)|*.wav", "Select Audio File"),
Editor(typeof(PathEditor), typeof(System.Drawing.Design.UITypeEditor))
]
public string InputWavefile
{
    get { return System.IO.Path.GetFileName(inputtWavefile); }
    set 
    {
        if (value != inputWavefile)  // inputWavefile has been changed
        {                           
            // validate the input stringg
             _inputWavefile = FileValidation.ValidateFile(value);

            // assign validated value
            inputWavefile = _inputWavefile;
       }
    }
}
</code></pre>
