N
news.microsoft.com
Hi,
How can I check if my control is visible at run-time BEFORE the form is
fully loaded?
In design mode you can create a window and put a Button inside, set the
property Visible to true.
But at run-time at least the Button is fully visible this property will
return false.
I need to know what is the "status" of this button before the Form (Parent)
and itself are visible.
In my case I have to do some logic in the Form Constructor, then if the
button "is visible design mode" then do something if not do something else.
Basically in the constructor you will always get a Visible = false although
the property is set to TRUE.
For example in ToolStrip you get a property "Available". It tell if the
control should be render or not, that it is not the same as Visible, and
that is what I'm looking for in a Control object.
Thanks,
Gustavo.
How can I check if my control is visible at run-time BEFORE the form is
fully loaded?
In design mode you can create a window and put a Button inside, set the
property Visible to true.
But at run-time at least the Button is fully visible this property will
return false.
I need to know what is the "status" of this button before the Form (Parent)
and itself are visible.
In my case I have to do some logic in the Form Constructor, then if the
button "is visible design mode" then do something if not do something else.
Basically in the constructor you will always get a Visible = false although
the property is set to TRUE.
For example in ToolStrip you get a property "Available". It tell if the
control should be render or not, that it is not the same as Visible, and
that is what I'm looking for in a Control object.
Thanks,
Gustavo.