ballisticnylon
Regular
Hi there everybody,
Today I was playing around with the Flow Layout Panel control (it's a panel that governs the layout of the controls it contains, moving their locations so controls don't overlap). Anyway, any control that is added to a Flow Layout Panel gets a new property, FlowBreak. I've noticed that this property is settable in the Property Grid in the designer, but not in code. I guess my (very general) question is, what's going on here? How does a parent control add a property to its' children, is it a real property that belongs to the child, and finally (and most importantly) how can I write a container control that does the same thing?
Thanks in advance, people. This stuff is confusing.
bn
Today I was playing around with the Flow Layout Panel control (it's a panel that governs the layout of the controls it contains, moving their locations so controls don't overlap). Anyway, any control that is added to a Flow Layout Panel gets a new property, FlowBreak. I've noticed that this property is settable in the Property Grid in the designer, but not in code. I guess my (very general) question is, what's going on here? How does a parent control add a property to its' children, is it a real property that belongs to the child, and finally (and most importantly) how can I write a container control that does the same thing?
Thanks in advance, people. This stuff is confusing.
bn