I have a component that is in conflict with another component that handles some internal translations.
What happens is that business logic components gets executed, then the translation system executes, which picks up texts now present in the form, and attempts to translate them.
The problem is that the text now contains things like numbers, dates, database-related text, etc. but before the business logic was executed, those controls was either blank or contained dummy-text prepared for translation.
I'm wondering how I can have a component that I drop on a form execute its code at a specific time in the lifetime of the form.
For instance, if I remove the offending code from the business logic component, so that it doesn't do anything upon construction, then translation work, and if I then call the method I moved that code to from Form_Load, that too works nicely.
So I'm wondering, is there a way for me, from a component (ie. descended from Component, not a visual control), to execute code just before or after Form_Load, or at least after all other components and controls have been set up?
It doesn't appear to be any link from within the component back to the form, so for me to hook into the Load event doesn't seem possible either.
Or am I barking up the wrong tree?