I have a panel(child panel) inside another panel (parent panel). When the parent panel gets resized, I want to resize the child panel to some ration of the parent panel.
The trick is that I don't know the best practice method of doing this. Right now, I manually call the child panel resize event from the parent's resize event. That looks sloppy to me.
Plus, while in the child resize event, I get the parent's rectangle, and use that to set the child's rectangle. This also seems to cause another resize event to trigger.... Really sloppy.
What is the best practice to do this?