Windows Forms glass effect, make ImageBox transparent

I have an application for Windows forms, and I expanded the window frame in the client area using DwmExtendFrameIntoClientArea to get the glass effect.

Now I'm trying to show a transparent PNG image in the image window, however the background is displayed as white instead of the glass effect. How to make the image transparent so that I see only a rounded gray rectangle, and not a white background.

My screenshot is below. Thank.

alt text

alt text

0
source share
2 answers

, winforms..... , , blam said: - : R: 1, G: 2, B: 3... ... , , ... ( )

+3

, : Black iirc.

0

Source: https://habr.com/ru/post/1773026/


All Articles