0

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?

MaxCoder88
  • 2,374
  • 6
  • 41
  • 59

1 Answers1

1

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

Community
  • 1
  • 1
Shadow The GPT Wizard
  • 66,030
  • 26
  • 140
  • 208