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

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -