How to know that control is visible to user?
Asked
Active
Viewed 1,302 times
1
-
Do you mean whether the user can actually see the control? See http://stackoverflow.com/questions/4747935/c-winform-check-if-control-is-physicaly-visible – stuartd May 25 '11 at 15:07
1 Answers
2
On a Windows Form you can just check the .Visible property on the control. You can also use it to set the visibility.

Russell Patterson
- 622
- 3
- 10
- 23
-
Yeah, a lot of the properties available on a control can be used to both get and set the values. – Russell Patterson May 25 '11 at 15:11
-
this does not works at all, the visible property is often true long before the form is visible to the user – GuidoG Apr 23 '19 at 14:03