moving controls inside tablelayoutpanel

ankit goel 441 Reputation points

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 .

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,479 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,244 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Viorel 95,156 Reputation points

    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 71,866 Reputation points

    You can use SetRow / SetColumn to move them

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