# Switch

Xojo provides a <span class="title-ref">Switch</span> control for mobile and web projects. It's functionally the same as a CheckBox:

- `MobileSwitch</api/user_interface/mobile/mobileswitch>`
- `WebSwitch</api/user_interface/web/webswitch>`

## Common members

These events and properties are both common amongst the 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                                                                                      |
|--------------|--------------------------------------------------------------------------------------------------|
| ValueChanged | The value (whether the <span class="title-ref">Switch</span> is checked, unchecked) has changed. |

### Properties

| Name    | Description                                                                                       |
|---------|---------------------------------------------------------------------------------------------------|
| Enabled | Dictates if the <span class="title-ref">Switch</span> is enabled (can be interacted with) or not. |
| Value   | Indicates whether or not the <span class="title-ref">Switch</span> is checked.                    |

<div class="seealso">

`MobileSwitch</api/user_interface/mobile/mobileswitch>` and `WebSwitch</api/user_interface/web/webswitch>`

</div>
