MaxCoder88
MaxCoder88

Reputation: 2428

Adding Auto PictureBox in C#

When I click a button in my C# application,it will add the PictureBox same Inline as well as same size side by side. if the first row is full,it will pass to the bottom row.How can I do that?

Upvotes: 0

Views: 240

Answers (1)

Shadow Wizzard
Shadow Wizzard

Reputation: 66397

I believe you are after FlowLayoutPanel - just put all the picture box controls inside such panel and it will behave like you want, adding side by side then expand when it is "full".

Related question:
Populating a FlowLayoutPanel with a large number of controls and painting thumbnails on demand

Upvotes: 1

Related Questions