moving controls inside tablelayoutpanel

ankit goel 746 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 .

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,836 questions
C#
C#
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.
10,281 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Viorel 112.5K 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 81,826 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