Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Fri, 8 Aug 2008 06:49:39 -0700 (PDT),    group: microsoft.public.dotnet.framework        back       


Transparent form which records clicks and passes on to application below   
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?
date: Fri, 8 Aug 2008 06:49:39 -0700 (PDT)   author:   matthew

Re: Transparent form which records clicks and passes on to application below   
On Fri, 08 Aug 2008 06:49:39 -0700, matthew  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
date: Fri, 08 Aug 2008 09:37:50 -0700   author:   Peter Duniho

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us