# Binding Selected tab property to Opened window

**URL:** <https://forum.inductiveautomation.com/t/binding-selected-tab-property-to-opened-window/10478>\
**Category:** Ignition\
**Created:** [September 17, 2015, 12:51pm UTC](https://forum.inductiveautomation.com/t/binding-selected-tab-property-to-opened-window/10478 "2015-09-17T12:51:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bellm](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@bellm](https://forum.inductiveautomation.com/u/bellm)\
**Post date:** [September 17, 2015, 12:51pm UTC](https://forum.inductiveautomation.com/t/binding-selected-tab-property-to-opened-window/10478/1 "2015-09-17T12:51:02Z")

</div>

How would I go about binding the selected tab property of the Tab Strip to the actual window that is open? When I deploy an update to the program the selected tab property will default back to the first tab even if the third tabs window is the currently opened window.

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [September 17, 2015, 3:27pm UTC](https://forum.inductiveautomation.com/t/binding-selected-tab-property-to-opened-window/10478/2 "2015-09-17T15:27:54Z")

</div>

You could write a simple visionWindowOpened event script that sets the selected tab on the Tab Strip when the window is opened. So when the client is updated the event script is executed, setting the Tab Strip to the correct tab.

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [September 17, 2015, 4:46pm UTC](https://forum.inductiveautomation.com/t/binding-selected-tab-property-to-opened-window/10478/3 "2015-09-17T16:46:20Z")

</div>

You can also bind it to the System \> Client \> User \> CurrentWindow tag
