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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -