agregando controles a tableLayoutPanel
Frecuentes
Visto 4,096 veces
2
I was wondering if it was possible to add more than one item into single tableLayoutPanel? Currently, I can only insert ONE item, it won't accept anything else. I would like to have for example a richtextBox with label and button inside it. Is is possible? Thanks! I'm not asking for code, I just need to know if it's possible to manually drag and drop these items into single cell in tableLayoutPanel.
3 Respuestas
5
It appears you are only allowed one control per cell, if that is what you mean. You can always add a container control such as a panel with it's Dock
propiedad establecida en Fill
you can then add your additional controls to it. Or add another tablePanelLayout Control to the Cell and set the row / columns how you need and then add your controls to that. Or as LarTech mentioned in the comments a Control de usuario también funcionaría.
Respondido 24 ago 12, 03:08
0
You Can also add a Panel Control and then add all other stuff to the Panal
Respondido el 30 de diciembre de 13 a las 15:12
0
Add a container such as a GroupBox or Panel, and set it to fill all available space in the table cell, and that could override the TableLayoutPanel's "one per box" rule so you should be able to add as many controls as you wish
respondido 21 mar '20, 19:03
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas c# tablelayoutpanel or haz tu propia pregunta.
@LarsTech Yes that would work also, probably be cleaner also. I was just think about using a different container. thx - Mark Hall