I am currently making a windows form application on Visual studio in C#. I have a couple of text boxes where I want the user to input some stuff and then this information is checked whether it exists, if not, an error is thrown and a text box saying "Invalid File" is meant to appear, in red. However, currently, when I enable it's visibility, it simply shows up as a blank box, with no colour and no formatting. Here is the code I was using:
catch
{
textBox9.Visible = true;
System.Threading.Thread.Sleep(3000);
textBox9.Visible = false;
}