# Use MultiSelect Control

Get started with MultiSelect, the WinForms control that provides the ease of selecting multiple objects from a list/collection. See more in documentation here.

## Content

MultiSelect allows you to add, remove, and access specific items with minimal code. It also lets you display or hide the check boxes and dropdown button appearing in the control. Learn how they can be implemented.

* [Add an item](/componentone/docs/win/online-multiselect/usingmultiselectcontrol#add-an-item)
* [Remove an item](/componentone/docs/win/online-multiselect/usingmultiselectcontrol#remove-an-item)
* [Access specific item](/componentone/docs/win/online-multiselect/usingmultiselectcontrol#access-specific-item)
* [Show/Hide check boxes](/componentone/docs/win/online-multiselect/usingmultiselectcontrol#showhide-check-boxes)
* [Show/Hide dropdown button](/componentone/docs/win/online-multiselect/usingmultiselectcontrol#showhide-dropdown-button)

### Add an item

To add items to the MultiSelect control, use Add method of C1CheckListItemCollection as shown in the following code. For example, the following code adds “Edward” in dropdown list of the MultiSelect control:

```vbnet
C1MultiSelect1.Items.Add("Edward")
```

```csharp
c1MultiSelect1.Items.Add("Edward");
```

MultiSelect also allows you to add an item at a specific position using Insert method of **C1CheckListItemCollection** and specify an index value for the new item in it. For example, the following code inserts a name, Robert, to the fifth position, adjusting the position of the other items in the dropdown list:

```vbnet
C1MultiSelect1.Items.Insert(4, "Robert")
```

```csharp
c1MultiSelect1.Items.Insert(4, "Robert");
```

### Remove an item

MultiSelect lets you delete an item from the list using RemoveAt method of **C1CheckListItemCollection** as shown in the following code. The method takes one argument, index, which specifies the item to remove. For example, the following code deletes sixth entry from the list.

```vbnet
C1MultiSelect1.Items.RemoveAt(5)
```

```csharp
c1MultiSelect1.Items.RemoveAt(5);
```

MultiSelect also allows you to delete a selected item from the MultiSelect control using Remove method as shown in the following code:

```vbnet
C1MultiSelect1.Items.Remove(C1MultiSelect1.SelectedItem)
```

```csharp
c1MultiSelect1.Items.Remove(c1MultiSelect1.SelectedItem);
```

To remove all the entries from the list, use Clear method of **C1CheckListItemCollection** as shown in the following code:

```vbnet
C1MultiSelect1.Items.Clear()
```

```csharp
c1MultiSelect1.Items.Clear();
```

### Access specific item

To access a specific item from the MultiSelect control dropdown list, use [Items](/componentone/docs/win/online-multiselect/) property of [C1MultiSelect](/componentone/docs/win/online-multiselect/) class and specify the index of that item. Furthermore, you can change the value of an item in the list using Value property of the C1CheckListItem class. For example, to access and change the value of third item from the list, write the following line of code:

```vbnet
C1MultiSelect1.Items[2].Value = "Jake"
```

```csharp
c1MultiSelect1.Items[2].Value = "Jake";
```

### Show/Hide check boxes

By default, list of items in the MultiSelect control are displayed with check boxes. However, you can disable the default style by setting [ShowCheckBoxes](/componentone/docs/win/online-multiselect/) property to **false**.
![Hide checkbox in ComponentOne MultiSelect](https://cdn.mescius.io/document-site-files/images/243ab1d7-6cc5-4fde-978a-d5c75779ab14/images/hiddencheckboxes.png)
To hide the check boxes from the list, use the following code:

```vbnet
C1MultiSelect1.ShowCheckBoxes = False
```

```csharp
c1MultiSelect1.ShowCheckBoxes = false;
```

### Show/Hide dropdown button

MultiSelect displays the dropdown button to show the list of available items. However, you can hide the dropdown button in the control by setting [ShowDropDownButton](/componentone/docs/win/online-multiselect/) property to **false**.
![Hide dropdown button in ComponentOne MultiSelect](https://cdn.mescius.io/document-site-files/images/243ab1d7-6cc5-4fde-978a-d5c75779ab14/images/hiddendropdownbutton.png)
To hide the drop down button, use the following code:

```vbnet
C1MultiSelect1.ShowDropDownButton = False
```

```csharp
  c1MultiSelect1.ShowDropDownButton = true;  //before
  c1MultiSelect1.ButtonsSettings.DropDownButton.Visible = true;  //after
```

## See Also

[Quick Start](/componentone/docs/win/online-multiselect/quickstart)