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 / February 2006

Tip: Looking for answers? Try searching our database.

Check if a form or control is visible in Desktop (to the user)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
samnospam@nospam.nospam - 07 Feb 2006 14:21 GMT
Hello,

I want to know if a form is visible in the Desktop and the user can see it.
The property Visible is true although other program is over the form, so this
property don't solve the problem.

Thanks.
Nkem - 07 Feb 2006 17:59 GMT
How about the activate property. First you can check to see if it is opened,
then when you activate it, it would come to the top.

frm.Activate();

> Hello,
>
[quoted text clipped - 3 lines]
>
> Thanks.
Peter Oliphant - 07 Feb 2006 18:21 GMT
If you mean you want to know if any part of the form is visible in the sense
that it isn't being covered up by other applicatons, I believe this is not a
simple problem. After all, a single pixel of your form being visible
violates the condition! How do you deal with translucentcy of other forms?
If it is 'almost' opaque (say, alpha = 255-1) is what's underneath
'visible'?

I think you would need to find all applications running, get their forms
(some may have more than one), find their locations and size, check for
translucentcy, compare against the dimensions and locations of your form,
and your form if visible if it meets all the above conditions...

Not sure what you need this for, but that's my 2 cents...

[==P==]

> Hello,
>
[quoted text clipped - 5 lines]
>
> Thanks.
samnospam@nospam.nospam - 22 Feb 2006 09:11 GMT
I'm looking for something like a windows message or notification, for example
a message received through WndProc.

Thanks.

> Hello,
>
[quoted text clipped - 3 lines]
>
> Thanks.

Rate this thread:







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.