How to draw rounded raised and sunken edges of control?

I need a way to draw rounded raised and sunken corner edges on a user control. I am currently using ControlPaint.DrawBorder3D, but of course the corners are squared and look awful. How can this be done? In addition, this project is not allowed to use any PInvoke calls.

+3
source share
1 answer

you need to draw it by hand using a series of arcs and lines. the easiest way is to add them to the Path and use Graphics.DrawPath (...)

check this post on MSDN forums

+2

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


All Articles