Rounded edges in button C# (WinForms)

后端 未结 6 477
时光说笑
时光说笑 2020-11-29 07:07

\"It's

Hello, through some research around here and other sites, I\'ve made a roun

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 07:24

    Short of painting it yourself, I don't think there's anything you can do. The base button paint logic isn't written as "show a blue highlight around such-and-such portion of whatever the window region is". Instead, it's written with the type of region it expects -- a rectangular one. So the base paint is always going to paint a rectangular image into a cropped shape. You'll have an easier time of such things in WPF.

提交回复
热议问题