© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
1 reply
1FriendlyDoge

Overlay (Not clickable and selectable window on top of fullscreen window) in WPF

So I basically want to make a transparent window that has a custom usercontrol (for example a dot inside of it) and display it TopMost. The only issue is that I can click it and then the fullscreen app loses focus, is there any way to prevent this? I already tried things like
Focusable="False"
Focusable="False"
and even DLL imports like
SetWindowLong(hwnd, GWL_EXSTYLE, extendedStyle | WS_EX_TRANSPARENT);
SetWindowLong(hwnd, GWL_EXSTYLE, extendedStyle | WS_EX_TRANSPARENT);
, but nothing seems to work.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ WPF Window click-thru/non-clickable
C#CC# / help
3y ago
❔ WPF not disposing of memory on window close
C#CC# / help
3y ago
❔ WPF application resources not found in window
C#CC# / help
3y ago