# All Events inheritable but not onShow() ?

**URL:** <https://forum.servoy.com/t/all-events-inheritable-but-not-onshow/12983>\
**Category:** Classic Servoy\
**Created:** [October 5, 2010, 2:35pm UTC](https://forum.servoy.com/t/all-events-inheritable-but-not-onshow/12983 "2010-10-05T14:35:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefanoni](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@stefanoni](https://forum.servoy.com/u/stefanoni)\
**Post date:** [October 5, 2010, 2:35pm UTC](https://forum.servoy.com/t/all-events-inheritable-but-not-onshow/12983/1 "2010-10-05T14:35:13Z")

</div>

With “Extends Form” (tagged with “1”):  
The printscreen shows lots of inheritability (tagged with red cross), but not for the  
onShow() there is no inheritance (tagged with “2”)

[attachment=0]Prtscrn\_01.jpg[/attachment]

So my first thought (and previous post) about this facts was: There is no inheritance for  
Events (like Commands). But, as you can see, its not true, because the **onUnload** is inherited !

This doesnt make sense for me.  
Thanke you for any suggestions.

 ![Prtscrn_01.jpg](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/2/26c5c5963deb92a9c0623802b35535a049f369c0.jpeg)

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [October 5, 2010, 5:07pm UTC](https://forum.servoy.com/t/all-events-inheritable-but-not-onshow/12983/2 "2010-10-05T17:07:03Z")

</div>

Alessandro,

The properties view shows the INHERITED tag when the property is not defined on the selected form itself but on one of its ancestors in form hierarchy.

You probably have defined the onShow method on the sub-form also.  
Try right-click-\>restore default value on the onshow property in the subform, it will clear the property on the subform and when the onshow has the same value on the superform, the INHERITED tag will also show.

Rob

---

<div class="post-metadata">

**Author:** ![stefanoni](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@stefanoni](https://forum.servoy.com/u/stefanoni)\
**Post date:** [October 6, 2010, 7:08am UTC](https://forum.servoy.com/t/all-events-inheritable-but-not-onshow/12983/3 "2010-10-06T07:08:43Z")

</div>

Thanke you Rob !  
It works. I was wondering about the “reset to default” might be not available, but the trick is, to rightclick on the Property-Columne and not the Value-Columne of the onload. So simple sometimes… ![:)]( "Smile")

Regards
