C# winform check if control is physicaly visible

后端 未结 9 1634
有刺的猬
有刺的猬 2020-12-09 01:58

Is it possible to determine if at least one pixel of a control can be seen (by a property or maybe using event notification).

NB : I am not looking for the Visible p

9条回答
  •  执笔经年
    2020-12-09 02:48

    You can invalidate the control and then call GetUpdateRect (Win32 api function) to find this out. It does have the side effect of causing a repaint, though.

提交回复
热议问题