[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

Transparent form which records clicks and passes on to application below

matthew

8/8/2008 1:50:00 PM

I want to create a fully-transparent fullscreen form which records
clicks but also passes on the 'click' to the desktop. Specifically, I
have an existing application which displays a webpage fullscreen. I
want my new application to run transparently over the top of the
existing app, and when the user clicks the mouse button, my
transparent application records the location of the click while
'passing on' the click to the application below it, allowing the user
to click on the webpage.

What is the best way to achieve this in .NET?

To achieve transparency, I have tried setting the form's opacity to 0,
or the background color to the same color as the transparency key, but
this means my form does not receive mouse clicks.

Alternatively, I can set opacity to 1%, which means the form is almost
transparent but recieves clicks. Now, how do I pass on clicks to the
application below? I could use PInvoke to simulate a click with
mouse_event, but this presumably clicks on the topmost application
(i.e. my transparent app) while I need to click on an application
beneath the topmost.

Is there some standard technique for this?
1 Answer

Peter Duniho

8/8/2008 4:38:00 PM

0

On Fri, 08 Aug 2008 06:49:39 -0700, matthew <mrankine@gmail.com> wrote:

> [snip]

Please don't multi-post. If you must post the same question to more than
one newsgroup, please learn to cross-post properly, by including all of
your desired newsgroups in the "Newsgroup:" field of a single post.

Thanks,
Pete