# ComboBox

Xojo provides a <span class="title-ref">ComboBox</span> control for desktop and web projects:

- `DesktopComboBox</api/user_interface/desktop/desktopcombobox>`
- `WebComboBox</api/user_interface/web/webcombobox>`

## Common members

These events, methods and properties are both common amongst the desktop, mobile and web versions of the control and are the most commonly used. See the individual controls for more members and details.

### Events

| Name             | Description                            |
|------------------|----------------------------------------|
| SelectionChanged | An item in the list has been selected. |
| TextChanged      | The text has changed.                  |

### Methods

| Name   | Description                                                 |
|--------|-------------------------------------------------------------|
| AddRow | Adds a row to list of items from which the user can choose. |

### Properties

| Name             | Description                                 |
|------------------|---------------------------------------------|
| SelectedRowIndex | The number of the selected row in the list. |
| Text             | The text of the currently selected row.     |

<div class="seealso">

`DesktopComboBox</api/user_interface/desktop/desktopcombobox>` and `WebComboBox</api/user_interface/web/webcombobox>`

</div>
