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#
Developer technologies | 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.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Viorel 125.7K 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 91,416 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.