About 338,000 results
Open links in new tab
  1. CheckBox Class (System.Windows.Forms) | Microsoft Learn

    Use a CheckBox to give the user an option, such as true/false or yes/no. The CheckBox control can display an image or text or both. CheckBox and RadioButton controls have a similar function: they allow the user to choose from a list of options. CheckBox controls let the user pick a combination of options

  2. c# - how to change the check image on a checkbox - Stack Overflow

    If you are looking for how to do this in Winforms, the simple answer is to create a new checkbox class that derives from CheckBox, then override the OnPaint method. Here is an example on how to create custom looking checkboxes by overriding the OnPaint method: public CustomCheckBox() this.SetStyle(ControlStyles.UserPaint, true);

  3. CheckBox in C# - GeeksforGeeks

    Mar 25, 2025 · Step 1: Create a checkbox using the CheckBox() constructor provided by the CheckBox class. // Creating checkbox. CheckBox Mycheckbox = new CheckBox(); Step 2: After creating CheckBox, set the properties of the CheckBox provided by the CheckBox class. // Set height of the checkbox. Mycheckbox.Height = 50; // Set width of the checkbox. Mycheckbox ...

    Missing:

    • Visual Graphics

    Must include:

  4. CheckBox In C# - C# Corner

    We can create a CheckBox control using a Forms Designer at design-time or use the CheckBox class in code at run-time (also known as dynamically). To create a CheckBox control at design-time, you simply drag and drop a CheckBox control from Toolbox to a Form in Visual Studio.

    Missing:

    • Visual Graphics

    Must include:

  5. checkbox - C# All Check-box Appearance - Stack Overflow

    Mar 23, 2016 · In my WinForms Visual Studio application i have a checkbox styled as a Flat Button with this C# code: private void checkBox1_CheckedChanged(object sender, EventArgs e) if (TestBox.Checked == true) TestBox.Image = Image.FromFile("M:\\CheckBox_52x.png"); TestBox.ImageAlign = ContentAlignment.MiddleCenter; TestBox.FlatAppearance.BorderSize = 0;

    Missing:

    • Visual Graphics

    Must include:

  6. CheckBoxRenderer Class (System.Windows.Forms) | Microsoft Learn

    Provides methods used to render a check box control with or without visual styles. This class cannot be inherited. The following code example demonstrates how to write a custom control that uses the DrawCheckBox method to draw a check box that responds to mouse clicks. using System.Drawing; using System.Windows.Forms;

  7. winforms - Custom CheckBox in C# - Stack Overflow

    Jul 31, 2012 · In this case, you must draw the appearance of the checkbox (i.e. the checked state, etc.) by yourself. You should override the OnPaintBackground function for drawing the background, instead of OnPaint. Another option is to call base.OnPaint(e) after you've drawn the …

    Missing:

    • Visual Graphics

    Must include:

  8. CheckBoxRenderer.DrawCheckBox Method (System.Windows.Forms)

    Draws a check box control in the specified state and location. DrawCheckBox(Graphics, Point, Rectangle, String, Font, Boolean, CheckBoxState) Draws a check box control in the specified state and location, with the specified text, and with an optional focus rectangle.

  9. How to set the CheckBox to Checked state in C#

    Sep 27, 2021 · In CheckBox, you are allowed to set the state of your CheckBox to the Checked using the Checked Property of the CheckBox. If the value of this property is true which means your checkbox in Checked state, otherwise, false.

    Missing:

    • Visual Graphics

    Must include:

  10. Windows Forms ChecksBox - C# Corner

    Aug 23, 2018 · A CheckBox control allows users to select a single or multiple options from a list of options. In this article, I will discuss how to create a CheckBox control in Windows Forms at design-time as well as run-time.

  11. Some results have been removed
Refresh