I have been using TableLayoutPanel
for arranging controls. Recently I discovered that TableLayoutPanel
does not support visual inheritance. I am now in the process of removing TableLayoutPanel
from my project. However, I do not understand how to arrange controls side-by-side. So far, what I see is that I can set the Dock
property of controls to either 'Top
' or 'Bottom
' and they will stack on top of each other in the order they are added to the Form.Controls
collection. The problem with this is that I would like to have the controls side-by-side (horizontally) instead of being on top of each other (vertically). Note that I want to use the Dock
property so that controls resize automatically when the Form is resized by the user. I do not want static controls that cannot resize.
I do want a solution that supports visual inheritance. There are a number of controls that do not support this, as explained here: http://ift.tt/1GxGqCE
Aucun commentaire:
Enregistrer un commentaire