Comment soutenez-vous ajouter des éléments à FlowLayoutPanel imbriquées?
-
12-09-2019 - |
Question
I ai un FlowLayoutPanel (flowParent) sur un formulaire qui héberge une liste de flowlayoutpanels (flowchild1, flowchild2, etc).
à partir du niveau de la forme, comment puis-je ajouter un élément à flowchild1. essentiellement, comment l'enfant référence que je FlowLayoutPanel?
La solution
Vous pouvez conserver la référence lorsque vous ajoutez ce panneau au panneau extérieur, ou utilisez Container.getComponent (int).
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow