Skip to content

Code formatting issue #2346

@jack147527

Description

@jack147527

There are four formatting issues in docs CheckedListBox

  private System.Windows.Forms.Button button3;
    private System.ComponentModel.Container components;
  
  public Form1()
  {
        InitializeComponent();

     // Sets up the initial objects in the CheckedListBox.
        string[] myFruit = {"Apples", "Oranges","Tomato"};
     checkedListBox1.Items.AddRange(myFruit);

        // Changes the selection mode from double-click to single click.
     checkedListBox1.CheckOnClick = true;
  }

should be like this

  private System.Windows.Forms.Button button3;
  private System.ComponentModel.Container components;
  
  public Form1()
  {
     InitializeComponent();

     // Sets up the initial objects in the CheckedListBox.
     string[] myFruit = {"Apples", "Oranges","Tomato"};
     checkedListBox1.Items.AddRange(myFruit);

     // Changes the selection mode from double-click to single click.
     checkedListBox1.CheckOnClick = true;
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions