I would like to have a round button control in WinForms, how might I accomplish this? A third-party control or code sample would be fine.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
You can make your own pretty easily, the Region property makes it simple. Add a new class to your project and paste the code shown below. Compile. Drop the new control from the top of the toolbox onto a form.
telerik RadButtons for WinForms maybe?
Use WPF if its still early in the project and you can still switch
I suggest following two DLL files: PresentationCore.dll and PresentationFramework.dll
It's more commonly known as Windows Presentation Foundation (WPF), and can easily be used to make round buttons.
add custom drawing in OnPaint event handler.
You'd probably have to create an image with your rounded corners specification, and use it on an image button to achieve what you want.