You can just use a CheckBox
and set its appearance to Button
:
CheckBox checkBox = new System.Windows.Forms.CheckBox();
checkBox.Appearance = System.Windows.Forms.Appearance.Button;
More Related Contents:
- Might be a silly question, but how do you set the label of a c# button ? (winforms)
- Rounded edges in button C# (WinForms)
- How to set/change/remove focus style on a Button in C#?
- Drawing a transparent button
- Dynamic button creation & placing them in a predefined order using c#
- How to add buttons dynamically to my form?
- How do I create 5 buttons and assign individual click events dynamically? [closed]
- How to make a button appear as if it is pressed?
- Get current folder path
- How to bind a List to a ComboBox?
- How to kill a thread instantly in C#?
- How do I fix a .NET windows application crashing at startup with Exception code: 0xE0434352?
- Visual Studio build fails: unable to copy exe-file from obj\debug to bin\debug
- How to create a custom MessageBox?
- Is it possible to Embed Gecko or Webkit in a Windows Form just like a WebView?
- Unable to copy a file from obj\Debug to bin\Debug
- Data binding for TextBox
- How do you automatically resize columns in a DataGridView control AND allow the user to resize the columns on that same grid?
- How to register Windows Forms with Simple Injector
- Run the current application as Single Instance and show the previous instance
- Create custom shape for button
- Make DateTimePicker work as TimePicker only in WinForms
- Auto-width of ComboBox’s content
- C# Why use SuspendLayout()?
- How can I show a tooltip on a disabled button?
- How to get the screenshot of the form
- DataGridView bound to BindingList does not refresh when value changed
- How to catch a key press on a C# .NET form
- TableLayoutPanel responds very slowly to events
- Open Form2 from Form1, close Form1 from Form2