# Tab Panel - onShow

**URL:** <https://forum.servoy.com/t/tab-panel-onshow/11473>\
**Category:** Classic Servoy\
**Created:** [December 4, 2009, 2:22pm UTC](https://forum.servoy.com/t/tab-panel-onshow/11473 "2009-12-04T14:22:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yummy](https://avatars.discourse-cdn.com/v4/letter/y/7ba0ec/32.png) [@Yummy](https://forum.servoy.com/u/Yummy)\
**Post date:** [December 4, 2009, 2:22pm UTC](https://forum.servoy.com/t/tab-panel-onshow/11473/1 "2009-12-04T14:22:53Z")

</div>

Hi,

I’m in Servoy 5 and I have a tabbed panel with 3 tabs. When the form loads for the first time it displays the form in tab index 1 - great as thats what I want.

Now when I click the next tab to display the form in tab index 2 I want it to run the onShow method but what I find is this method has already run the first time when the form and tab index 1 was first loaded and it does not run again.

If I then click on another tab and return to the form it then runs the onShow method.

How do I force it to run the method onShow the first tiome when I go from the initial form to the second or is there an alternative means to run a method each time I click on a tab?

Thanks,

---

<div class="post-metadata">

**Author:** ![nromeou](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@nromeou](https://forum.servoy.com/u/nromeou)\
**Post date:** [December 4, 2009, 4:24pm UTC](https://forum.servoy.com/t/tab-panel-onshow/11473/2 "2009-12-04T16:24:07Z")

</div>

Hi,  
Take a look on the event onTabChange in the tabpanel properties , i believe thats what youre looking for.
