简体   繁体   中英

C# Winform: Remove the border from a standard button?

Is it possible to remove the border of a standard C# Button ? I know that I could set the FlatStyle property to Flat and customize the FlatAppearance property to hide the border but I would prefer to use the Standard property to ensure that the control appears under all operating systems like a default Button . Did you have any suggestions how I can solve this issue? I am working with a Windows Forms Application.

You could use an image and make it clickable, that is one way to avoid the borders, but there are several options. Good luck!

If you are using windows forms and trying to implement Flat UI, Material UI, Metro-Looking controls, you're in hell. It is has limited properties for customizations unless you know how to work with Graphics and Animation . You'll have to use imagebox or picture box and dynamically change its image on different events.

I'll suggest WPF or Windows Presentation Foundation for a more customizable User Interface.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM