Calling a method from within a Container?

How can I call a method for a control that is placed inside a Container? Trying this now gives me a “This Item does not exist” error.

Trying what?

Trying to call the method…

if you have a button pressed event
MyContainer1.Untitled
and a container in the window MyContainer1
and a template container MyContainer
and it have a public method Untitled without return value
if you have a method with return and you not need this value you can write
Call MyContainer1.Untitled
or xojo would hide method names if you not handle the return value

if you have many container controls with same functionality give them an interface.