How to set parent of component to parent form at design time


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I'm trying to get a component to set a ParentForm property at design time and have it serialized. I think you are doing something like this with the ParentContainer property when you implement the IInitOnFormLoad interface, but I'm not figuring it out.



First, is this entirely handled via that property? It appears to be setting the value of the property, when in design mode, but what calls the property in design mode to begin with?



Second, what causes the value to be serialized? In the setter, the component is added to the list of objects that need to be initialized. Is there something special that needs to happen to get it serialized? I'm using C# if that makes difference or requires some extra step.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search