Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 49261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:24:32+00:00 2026-05-10T16:24:32+00:00

I am writing a very specialized app in C# that floats as a mostly

  • 0

I am writing a very specialized app in C# that floats as a mostly transparent window over the entire desktop. I want to be able to create and pass mouse events to applications behind mine, and have them appear to operate ‘normally’, responding to those events. It would also be preferable if the window manager could respond.

I am not a Windows guru, and am unsure of how to best accomplish this.

From this page: http://bytes.com/forum/thread270002.html

it would appear that mouse_event would be good, except that since my app is floating over everything else, I’m guessing my generated events would never make it to the other apps underneath.

It seems the alternative is SendMessage, but that requires a fair amount of manual manipulation of windows, and the mouse events generated aren’t ‘authentic.’

Any thoughts on the best way to approach this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:24:33+00:00Added an answer on May 10, 2026 at 4:24 pm

    After looking at System hooks and other low level solutions I found a much simpler method.

    First, set the TransparencyKey and BackColor of the form to be the same. This didn’t make any visual difference to me as my form was visually transparent already, but this will help in letting mouse events through.

    Second, the following code will let mouse events ‘fall’ through your form.

    protected override CreateParams CreateParams {     get     {         CreateParams createParams = base.CreateParams;         createParams.ExStyle |= 0x00000020; // WS_EX_TRANSPARENT          return createParams;     } } 

    Lastly, set TopMost to be true.

    Your form will now float on top of everything visually, but will give up focus to all other apps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a very simple flash app (AS 2) to sign users up to
Writing some test scripts in IronPython, I want to verify whether a window is
I am writing a (very small) framework for checking pre- and postconditions of methods.
I'm writing a very simple text editor and have run into a somewhat minor
Background I am writing and using a very simple CGI-based (Perl) content management tool
When it comes to writing custom MySQL database-driven PHP session management for a VERY
I've been writing PHP web applications for some time, and have come across very
I have developed some custom DAO-like classes to meet some very specialized requirements for
I'm writing a daemon in Java that takes in requests from multiple providers in
I want to partially specialize an existing template that I cannot change ( std::tr1::hash

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.