Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rbaut@ecs - 28 Dec 2006 17:04 GMT
Hey guys, is there a WinForms equivalent to this Java AWT method?
Herfried K. Wagner [MVP] - 28 Dec 2006 18:02 GMT
"rbaut@ecs" <rbautista@ezecastlesoftware.com> schrieb:
> 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
///

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>

rbaut@ecs - 28 Dec 2006 18:12 GMT
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?

> "rbaut@ecs" <rbautista@ezecastlesoftware.com> schrieb:
> > 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:
Rad [Visual C# MVP] - 28 Dec 2006 20:49 GMT
> "rbaut@ecs" <rbautista@ezecastlesoftware.com> schrieb:
>> Hey guys, is there a WinForms equivalent to this Java AWT method?
[quoted text clipped - 7 lines]
> 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.

Signature

Bits.Bytes
http://bytes.thinkersroom.com

Michael M. - 29 Dec 2006 17:46 GMT
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.

>> "rbaut@ecs" <rbautista@ezecastlesoftware.com> schrieb:
>>> Hey guys, is there a WinForms equivalent to this Java AWT method?
[quoted text clipped - 18 lines]
>
> Not sure if .NET has a direct equivalent for this.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.