# ColorPicker

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

- `DesktopColorPicker</api/user_interface/desktop/desktopcolorpicker>`
- `MobileColorPicker</api/user_interface/mobile/mobilecolorpicker>`
- `WebColorPicker</api/user_interface/web/webcolorpicker>`

## 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                         |
|---------------|-------------------------------------|
| ColorSelected | The user selected the color passed. |

### Methods

| Name | Description                                                                     |
|------|---------------------------------------------------------------------------------|
| Show | Displays the operating system's color picker using the color and prompt passed. |

### Properties

| Name     | Description                                                         |
|----------|---------------------------------------------------------------------|
| HasAlpha | If True, the color selected will be returned with an alpha channel. |

<div class="seealso">

`DesktopColorPicker</api/user_interface/desktop/desktopcolorpicker>`, `MobileColorPicker</api/user_interface/mobile/mobilecolorpicker>` and `WebColorPicker</api/user_interface/web/webcolorpicker>`

</div>
