Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# UserControl Visible Property

How can I override a UserControl Visible property ? Or how could I determine within a control when it changes its Visible state ?

Later edit: I need it to work in .NET CF 3.5.

Thanks.

like image 214
thelost Avatar asked Feb 19 '10 07:02

thelost


2 Answers

I finally fixed the issue by adding a new Visible property which is setting the base.Visible property and does my custom work.

like image 73
thelost Avatar answered Sep 30 '22 01:09

thelost


Try to subscribe to the IsVisibleChanged event

like image 29
Carra Avatar answered Sep 30 '22 01:09

Carra