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 8848361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:24:23+00:00 2026-06-14T12:24:23+00:00

I have been trying to work out if this is possible. Essentially what I

  • 0

I have been trying to work out if this is possible.

Essentially what I want is to have a form with a border as normal but with a transparent background. In this area I want a live display of what’s behind (a video feed is highly likely) into which I can capture the click events to display further information onto my overly form.

Currently I have tried to use Form.TransparencyKey and BackColor but I then lose the click events in the transparent sections of the from. I have also attempted to use a 99% transparent png as the BackgroundImage, but this just gives a dark gray background.

I have noted if I draw to the gap (ie a simple line) I can capture the click events over these, just not the transparent sections. Is there way I could draw a semi transparent rectangle in the on paint first maybe?

I would like this to be mono compatible if at all possible.

  • 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. Editorial Team
    Editorial Team
    2026-06-14T12:24:24+00:00Added an answer on June 14, 2026 at 12:24 pm

    As this has turned out to be impossible I ended up floating a 2nd dynamically generated form over the top with Opacity set to 0.01. I then used the Resize and LocationChanged events on the main form to resize and move the overlay form as required. I then just needed to handle the overlay forms click event to do as I needed.

    public MainFrom()
        {
            InitializeComponent();
    
            f = new Form();
            f.Size = panel1.Size;
            f.FormBorderStyle = FormBorderStyle.None;
            f.BackColor = Color.Black;
            f.Opacity = 0.01;
            f.ShowInTaskbar = false;
            f.Show(this);
    
            f.Click += new System.EventHandler(this.UserClicked);
        }
    

    This code then resizes the overlay form to account for the main forms border:

    private void SetLocation()
            {
                // These next 2 lines calculate the width of the border 
                // and the title bar and then use these to off set the floating
                // forms location correctly.
                int xOffset = (this.Width - this.ClientSize.Width) / 2;
                int yOffset= this.Height - this.ClientSize.Height - xOffset;
                int x = this.Location.X + panel1.Location.X + xOffset;
                int y = this.Location.Y + panel1.Location.Y + yOffset;
                f.Location = new Point(x, y);
            }
    

    According to the MoMa tool this is 100% mono compatible and the code compiles in MonoDevelop as expected. However if I run this I am seeing a null reference exception I do not see in MS .NET on load, this might be fixable but I am yet to look into this.

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

Sidebar

Related Questions

Okay I been trying to work this out but unable too. I have a
I have been trying to work out the bug on this but can't seem
I have been pulling my hair out trying to make this work. I have
I have been trying to figure this out all day... but can't seem to
I have been trying to make it work with either fwrite or fputcsv but
I have been trying to get this to work correctly and I think I
I have been trying to get this jsfiddle to work. So far without luck.
This is crazy, I have been trying for hours to get this to work.
I'm trying to figure out how to work out this query. I have a
I have been trying to figure this out for the past week and everything

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.