---
title: "Open a tab o button click WPF."  
description: "Open a tab o button click WPF."  
author: "Anonymous User"  
published: 2013-07-19  
updated: 2013-07-19  
canonical: https://www.mindstick.com/forum/1334/open-a-tab-o-button-click-wpf  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# Open a tab o button click WPF.

How to open a tab of [WPF](https://www.mindstick.com/forum/304/wpf) tab [control](https://www.mindstick.com/blog/197/asp-dot-net-repeater-control) on [button click](https://www.mindstick.com/forum/790/form-gets-submiited-twice-on-button-click)?

## Replies

### Reply by Vijay Shukla

Write the below line of code in [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net) [click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) event:-

tabControlName.SelectedIndex=0; // 0 (zero) use for the 0 (zeroth index of tab control).


---

Original Source: https://www.mindstick.com/forum/1334/open-a-tab-o-button-click-wpf

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
