在TableLayoutPanel中的Windows窗体删除单元格间距?

编程入门 行业动态 更新时间:2024-10-24 23:28:48
本文介绍了在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窗体删除单元格间距?

本文发布于:2023-11-12 01:04:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580063.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:窗体   间距   单元格   TableLayoutPanel   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!