1
Answer

Testing text of a label in Visual C#

Photo of Kennith Kanif

Kennith Kanif

12y
1.2k
1
I am learning C# with Visual Studio and I am making an application with a lot of labels. I need to test if the text of a label is equal to a string.
I think that it is probably something close to this:

if (label1.Text == <the string I want>)
please answer this as fast as you can
Thank you.

Answers (1)