【发布时间】:2013-11-26 18:14:01
【问题描述】:
使用 Visual Studio C#:我正在尝试将一些图片框动态添加到名为“MapGrid”的 TableLayoutPanel。
据我的谷歌搜索可以看出,这是:
MapGrid.Controls.Add(new PictureBox()
{
Dock = DockStyle.Fill,
Margin = new Thickness(0)
});
应该可以。 “Dock”部分有效,但我需要将所有边距设置为 0,我得到:
The type or namespace name 'Thickness' could not be found
【问题讨论】:
标签: c# winforms margin thickness