Pass it in an initialize function - like every other view. Forget that, let me think a bit slower and better
I lack details of your class but I assume that it encapsulates a combo box and that the event is raised within the class. In this case each class instance should receive it's own event from its own combo box so it is not immediately apparent to me why they would interfere with each other. Can you elaborate?
Thanks for your attention;
I'll try to provide a brief overview: (have your headache pills ready!!)
My app consists of a main form containing a TabPane, and every new page opens as a TabPage added to it. This class module that I'm talking about, it actually opens a new tab page, consisting of a small form with a combo box. It's for statistics; the user may want to open several statistical query pages, each for a separate purpose (in one, the combobox contains a customer list, in another a product list, etc.) Instead of adding an individual module for each type of query, I decided to make it a single Class Module, in which I would load the contents of the combo box based on the requested page.
So, this is an example of a problematic situation: the user has opened more than one statistical query page; now, each one calls the Class Module in question; so we've got a few Tab Panes, each containing a combo box with different contents; but when the event for one of them is triggered, it also affects the other ones (practically disables them). It's like: once an event is triggered, it blocks or disrupts the other ones.
I don't understand. I knew if I made it a code module and called it more than once, the combo boxes would interfere, but this is a class module... each page should be completely independent, right? I actually tested normal events for the combo boxes, and surprisingly they interfere as well, so it's not just about the Java code. I don't get it... Do I need to write a separate module for each type of query and have like 30 modules instead of one??
--------------------------------------------------------------------------------
Sorry for the lengthy details, but to facilitate the situation (since I'm not sure my explanations were clear), let me give a simple example of what the purpose of the module is, in case you have a suggestion as to how I should approach the situation:
Imagine that what your app does is show pictures of items; so, in every form in the app you would have a combo box containing a list of items which the user can choose to view images about; since you've got 20 different categories, you don't wanna add 20 modules and layout files, so you make it a single class module... That should work, right?
(Though I'm beginning to wonder if this is because the several pages in my app are not actually separate forms; they are just different "tabs" of a tab pane... They are independent panes, though...)
Again, sorry for writing too much.