moving controls inside tablelayoutpanel

ankit goel 766 Reputation points
2022-11-06T10:42:51.953+00:00

I want to move and place controls inside tablelayoutpanel but it seems that i cannot move controls as they are stuck at some place inside tableoutpanel . Any suggestions .

Developer technologies | Windows Forms
Developer technologies | C#
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Viorel 122.6K Reputation points
    2022-11-06T11:53:31.587+00:00

    For example, put a Panel control to the table's cell, then place your control (or more controls) to this panel. Maybe also set the Anchor property of the controls.

    In simple cases, you can set the Margin property of the control instead of using panels.

    0 comments No comments

  2. Castorix31 90,686 Reputation points
    2022-11-06T12:39:37.253+00:00

    You can use SetRow / SetColumn to move them

    For example, to move a Button at 0,0 :

    257490-tablelayoutpanel.gif


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.