C# transparent border for borderless form

前端 未结 2 909
闹比i
闹比i 2021-01-01 03:33

I\'m creating a borderless form and I want to add a custom border to it. When I add the background for the form however, it doesn\'t show well, and it is not transparent. <

2条回答
  •  灰色年华
    2021-01-01 03:52

    Okay so I cheated a bit but what I did was simply overriding the CreateParams to draw dropshadow even though it's a borderless window. It does exactly what I wanted so I went with it.
    Thanks for all the help!

提交回复
热议问题