General information
Category:
Forms & Form designer
Title:
Elegant solution anyone?
I'm sure many have floundered with this problem, and I hope someone has something better than the kludges I've been contemplating. I'm passing an object reference to a form. Many controls on the form are dependent on this object reference, which will be moved to a form property in Form.Init. I want the controls to establish their own link to the passed object, so what they need in effect is a "second init" after the Form.Init fires. I have a dozen different ways of making this work, but I don't especially like any of them; e.g. using global instead of passed object, creating form-level array of controls to call back when Form.Init fires, control refresh that only fires once... Any ideas?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only