Borderless Form Dropshadow

前端 未结 2 630
攒了一身酷
攒了一身酷 2020-12-22 11:02

So I have the following code:

#region Dropshadow
[DllImport(\"Gdi32.dll\", EntryPoint = \"CreateRoundRectRgn\")]
private static extern IntPtr CreateRoundRect         


        
2条回答
  •  一向
    一向 (楼主)
    2020-12-22 11:28

    I set the bottomHeight to 3, and I found that the border height was included in the form size (the form's size didn't change). So I set a BackgroundImage to this form, and the border was hidden by the image.

提交回复
热议问题