# TabPanel

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

- `DesktopTabPanel</api/user_interface/desktop/desktoptabpanel>`
- `WebTabPanel</api/user_interface/web/webtabpanel>`
- `MobileTabPanel</api/user_interface/mobile/mobiletabpanel>`

<div class="tip">

<div class="title">

Tip

</div>

For iOS apps, it's common to use an `iOSMobileTable</api/ios/iosmobiletable>` that, when a row is tapped, takes the user to another `Screen</api/user_interface/mobile/mobilescreen>` to provide the equivalent functionality of a <span class="title-ref">TabPanel</span>.

</div>

## 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                     |
|--------------|---------------------------------|
| PanelChanged | The selected panel has changed. |

### Properties

| Name               | Description                                                          |
|--------------------|----------------------------------------------------------------------|
| PanelCount         | The number of panels in the <span class="title-ref">TabPanel</span>. |
| SelectedPanelIndex | The index of the selected panel.                                     |

<div class="seealso">

`DesktopTabPanel</api/user_interface/desktop/desktoptabpanel>`, `WebTabPanel</api/user_interface/web/webtabpanel>` and `MobileTabPanel</api/user_interface/mobile/mobiletabpanel>`

</div>
