C
C#2y ago
ana

❔ Creating a transparent form with fully visible (100% opacity) controls like panels

Title, I'm trying to make a GUI in WinForms using .NET 4.8 and can't find a viable solution to do this...
13 Replies
ana
anaOP2y ago
made a super quick visualization, i added a poorly made checkbox and the black outline would be made as panels
ana
anaOP2y ago
may have made the "form background" a little too opaque, but it's a translucent black color
SuperBrain
SuperBrain2y ago
Are you making some kind of game overlay?
JakenVeina
JakenVeina2y ago
obligatory recommendation to not use WinForms especially if you want custom visuals
Mayor McCheese
You'll fight winforms every step of the way here
ana
anaOP2y ago
no, just want the look of the form to be translucent
SuperBrain
SuperBrain2y ago
Then you better stop using WinForms because its support for transparency is notoriously bad.
ana
anaOP2y ago
feared for this i suppose it's better to learn wpf then
SuperBrain
SuperBrain2y ago
That's the least you should learn Because all modern GUI frameworks are XAML-based And they all use DirectX natively, which means transparency works exactly the way you expect it to work.
ana
anaOP2y ago
aight
JakenVeina
JakenVeina2y ago
again, to be clear, you do NOT have to actually use XAML with WPF if it's more comfortable for you to just write plain C# initially, by all means do that enough, and I think a natural appreciation for the benefits of XAML will evolve
Omnissiah
Omnissiah2y ago
anyway if you want panels why don't adopt the mdi way or just make a form per panel
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server