简体   繁体   中英

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? 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.

this is an example you can add many of these filters and remove them by clicking the 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);
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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