1
I have a transparent windows form for drawing on other screens. For transparency, I used the following code:
BackColor = Color.Red;
TransparencyKey = Color.Red;
It worked for a while, but now it doesn’t recognize the clicks on the screen, it’s like clicking through it. Coincidentally or not, it stopped working after a Windows 10 upgrade, and works on other computers.
It wasn’t a modification of the code that caused it to crash, because even going back to earlier versions of the project, where the click was recognized, doesn’t work anymore. Is there any other way to make the window transparent? Follow a print of the program, so you can understand what the application is about.
Just posting the code so we can check.
– Jéf Bueno
The code of the transparency part is there :)
– Beatriz Neves Porto
I just created a form transparent and works perfectly.
– Jéf Bueno
This code is inside the constructor method of the single form. Inside this form, there is a panel where things are drawn. The captured events are mouse clicks, and are captured in the panel class. However, my question is not how to solve this code, but how else to make the transparency of a form.
– Beatriz Neves Porto
If you’ve created a transparent form that works the way I need it, why not put it as an answer?
– Beatriz Neves Porto
Because I used exactly the code that you have in your question (????)
– Jéf Bueno
If I understand correctly, you’re doing it the wrong way, the right way would be using an overlay.
– Francisco
Okay, and I came here to ask for sure why I have a functional code. Thank you for your help, jbueno, all I needed was someone to test and say that it works what was done here. Surely the application will feel motivated with your words and start to work.
– Beatriz Neves Porto