Hi everyone - there seems to be a similar question to this on here but with the 'opposite' problem (He didn't want mouse events captured).
I have a form with a panel. The window is borderless and set to the exact size of the panel (for all intents and purposes, it is as if the panel is 'free floating'). I can set the panel's BackColor to SystemColors.Control, and then set the window's TransparencyKey to the same. This works in that it achieves the desired effect (transparency), but the panel can no longer capture mouse events (which is vital to the functionality)!
Is there another way around this, or a way to re-enable mouse capture?
I have tried overriding the OnPaintBackground and doing a noop, but this didn't achieve real transparency because it doesn't update the background after every tick (so whatever is behind the panel at the initial draw remains there regardless of whether you move the panel or otherwise update it). It did, however, allow the panel to capture mouse events.
This isn't all that troublesome at this stage in the project but I stumbled across the problem during a quick prototype and it's starting to annoy me now. If anyone has any pointers they'd be much appreciated.