I am creating a self-checking set of usercontrols. They tend to call
their self-checking functionally in the "Load" event. I have run into
a problem with my TextBox usercontrol, however, as the base component
does NOT have a Load event as far as i can ascertain.
What I need is to have a self-check function called when the component
loads. I am currently using the "Layout" event but that can fire
multiple times, and I can't just call the method from the constructor
for multiple reasons.
So in summary:
1. Is there an event that I just haven't noticed that can be used in
place of "Load" for a TextBox
OR, lacking that
2. Is there a way to add an event or mimic this Load event behavior?
OR
3. Is there a way to fully disable the Layout event handler inside
its own code so that is guaranteed only to fire once at the beginning
of runtime and not twice nor ever again?
Whoever answers this, thank you so much for your time. This has
driven me crazy.