PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?c2Ftbm9zcGFtQG5vc3BhbS5ub3NwYW0=?=
Guest
Posts: n/a
 
      7th Feb 2006
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.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TmtlbQ==?=
Guest
Posts: n/a
 
      7th Feb 2006
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();


"(E-Mail Removed)" wrote:

> 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.

 
Reply With Quote
 
Peter Oliphant
Guest
Posts: n/a
 
      7th Feb 2006
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==]

<(E-Mail Removed)> wrote in message
news:5B830088-0B13-4280-B803-(E-Mail Removed)...
> 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.



 
Reply With Quote
 
=?Utf-8?B?c2Ftbm9zcGFtQG5vc3BhbS5ub3NwYW0=?=
Guest
Posts: n/a
 
      22nd Feb 2006
I'm looking for something like a windows message or notification, for example
a message received through WndProc.

Thanks.

"(E-Mail Removed)" wrote:

> 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.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check Control if Visible or hidden Abe Katz Microsoft Access Forms 1 4th Mar 2010 10:10 PM
Making A form tab invisible/visible with a check box jaythe0ne@hotmail.co.uk Microsoft Access Forms 2 15th Aug 2009 09:14 AM
Check Control.Visible property value news.microsoft.com Microsoft Dot NET Framework Forms 7 21st Apr 2006 03:15 AM
Check if Form is Visible ? Dave Ruhl Microsoft Access 2 2nd Feb 2004 08:42 PM
Howto check if form is visible in code H. den Breejen Microsoft Dot NET Framework Forms 0 10th Dec 2003 10:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:29 AM.