简体   繁体   English

如何创建一个与 inline-flexbox 等效的 winforms 控件

[英]How to create a winforms equivaelent control to inline-flexbox

Is it possible to create an Inline-flexbox equivalent in .NET Winforms that is driven by various Combobox and Checkbox Controls on a Windows form?是否可以在 .NET Winforms 中创建等效的 Inline-flexbox,由 Windows 表单上的各种 Combobox 和复选框控件驱动? I dont need something too sophisticated, perhaps 6 at most of these buttons with curved edges that just stack inline as they are added and sized to the text within the button.我不需要太复杂的东西,这些按钮中的大多数可能最多有 6 个带有弯曲边缘的按钮,当它们被添加到按钮内的文本并调整其大小时,它们只是内联堆叠。

this is an example you can add many of these filters and remove them by clicking the X这是一个示例,您可以添加许多这些过滤器并通过单击 X 将其删除

This is from the hyperlink and inserts dynamically controls hence does what I need you helped a great deal sideways.这是来自超链接并动态插入控件,因此我需要你帮助很大。 Shouldn't we be using tabs instead of spaces as it causes problem in code?我们不应该使用制表符而不是空格,因为它会导致代码出现问题吗?

for (int i = 0; i < 5; i++)
{
Button button = new Button();
button.Tag = i;
flowLayoutPanel1.Controls.Add(button);
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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