How to get the “real” value of the Visible property?

前端 未结 4 952
执笔经年
执笔经年 2021-01-11 11:40

If you set the Visible property of a Windows Forms control to true, that property still returns false if any of the control\'s parent windows are hidden. Is there a way to g

4条回答
  •  太阳男子
    2021-01-11 12:05

    What I did is temporarily remove the button from its parent controls to check its Visible value and then re-add to the parent controls.

    If you need you can track the child index to re-add it at the right index.

提交回复
热议问题