WinForms equivalent to java.awt.Component: isShowing()

  • Thread starter Thread starter rbaut@ecs
  • Start date Start date
rbaut@ecs said:
Hey guys, is there a WinForms equivalent to this Java AWT method?

I am not sure what exactly the method does, but maybe you are looking for
the control's or form's 'Visible' property:

\\\
If Me.Button1.Visible Then
...
End If
///
 
Hi, java.awt.Component.isShowing() returns true only if the component
is visible AND actually showing. For example, if the component is
contained in a tab page and that tab page is not currently selected,
isShowing() will return false.

Is there a WinForms equivalent?
 
I am not sure what exactly the method does, but maybe you are looking for
the control's or form's 'Visible' property:

\\\
If Me.Button1.Visible Then
...
End If
///

If i can remember correctly from my java days the isShowing() and
isVisible() have a very subtle difference. If a component is visible and is
put in a component that is not, say a JFrame, the component's isVisible()
will still return true but isShowing() will return false.

Another example is a popup menu. It isVisible() return true even when the
menu itself has not popped up.

Not sure if .NET has a direct equivalent for this.
 
I think "Visible" in VB.Net controls is just eqivilent to Wm_Hide, Wm_Show
API.functionality

It seems rBaut is need of something that will tell him the draw order or
something like that, if you put a text box over a Label the they will both
be visible but only the one with the highest Z order will be painted.

Im not sure if that is built in.
 
Back
Top