ableLayoutPanel中的Windows窗体删除单元格间

ableLayoutPanel中的Windows窗体删除单元格间

本文介绍了在TableLayoutPanel中的Windows窗体删除单元格间距?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编程方式创建一个类,地图,从TableLayoutPanel中的类继承。地图类增加瓷砖的对象(面板的子女),每有一个背景图像。一切正常,除了有每一个我想删除单元之间的明显空间。

I've programmatically created a class, Map, that inherits from the TableLayoutPanel class. The Map class adds Tile objects (children of Panel) that each have a background image. Everything works except that there is a noticeable space between each cell that I would like to remove.

我环顾四周,但无法弄清楚如何删除在TableLayoutPanel中的单元格之间的空间。什么是删除它最简单的方法?

I've looked around, but cannot figure out how to remove the space between the cells in the TableLayoutPanel. What's the easiest way to remove it?

推荐答案

检查空间不是由你的孩子的保证金财产造成(瓦)控制设定为某种默认值 - 对于多个控件,默认保证金值为3

Check that the space isn't caused by the Margin property of your child (Tile) controls being set to some kind of default value - for a number of controls, the default Margin value is 3.

这篇关于在TableLayoutPanel中的Windows窗体删除单元格间距?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 01:28