How Do I Change Label Color Dynamically Using C#.
Hi,
I have created a Label dynamically the code is as below.
Label status = new Label();
status.Text.ForeColor = System.Drawing.Color.Red;
and error is coming as below:-
'string' does not contain a definition for 'ForeColor' and no extension method 'ForeColor' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?)