Winforms: What Determines if Docking Moves Other Controls
问题 For example, within a TabPage, I have a DataGridView that is docked "Fill". If I set the dock property of a UserControl to the the "Right" position, the DataGridView moves to the left as expected. If I replace the UserControl with a Panel or Label (also docked to the "Right" within the TabPage) the DataGridView does not make room. The Panel or Label just overlay the DataGridView. I tried stackoverflow and did some reading but did not see any rules (yet). Thanks. 回答1: Their Z-order. You can