简体   繁体   中英

TableLayoutPanel select cell in designer

I want to copy a label (red) and paste the control in a cell (blue) but it appears in another cell:

复制并过去

Results in:

这是错误的结果

How do I tell the designer in which cell I want the control pasted into? I couldn't find any hints how to do that. The only thing that works as intended, if I drag a new control directly from the toolbox on to that cell.

Okay. One may not be able to assign a control to a cell in the designer window, but in the properties window. If the control is a children of a TableLayoutPanel it gets a property called Cell :

属性中的单元格属性

Change values accordingly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM