Custon control to Container

I have made a TextField which is modified to look like a search box. The keyup event of the textfield does a search on a cell of a listbox. I would like to be able to put this stuff in a container control and use it in more that one place(window).

The problem is that the name of the listbox would change and the column to search may be different.

It there some way to over come this so that I can use a container, or even make it a class?

the listbox name would be relative to the container control instance.

so … mycontainer.mylistbox
and
myothercontrainer.mylistbox

where mycontainer and myothercontainer are instances of your container control … and mylistbox is in the container and can be treated differently for each instance

Just like a class in that regard.