[英]How to move PictureBox in TableLayoutPanel grid from keyboard?
[英]winforms - how to move a picturebox within a tableLayoutPanel?
我试图在每个单元格中使用面板,但是图片框仍然不会移动到另一个单元格。 谢谢
使用以下内容:
tableLayoutPanel.Controls.Remove(button1);
// then:
tableLayoutPanel.Controls.Add(pictureBox, columnIndex, rowIndex);
阅读有关TableLayoutPanel的信息 :
csharp-online.net上的TableLayoutPanel教程
如果要实现拖放 ,可以从以下参考资料中使用:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.