Check if a label has visible property to true.c# winforms -
How to check how a label looks? It is not working ...
if (labelFS.Visible = false) {do sth} else // labelFS.Visible = true {do other} <
Code>, not the assignment operator (a single = ). By using a single = , you are actually setting the value of labelFS. Visible to incorrect , which hides it. (there is no need to type true and false .) If (labeled F.Visible) // do something else / do something else I suggest reading the difference. Here's a beginning ...
-
-
Comments
Post a Comment