Click here to Skip to main content
15,913,722 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi friends,
How to arrange picture box automatically if i have 5 picture box in my program and now i want to disable 1 picture box in programmatic way and rearrange rest picture box automatically. Please help.
Posted

Perhaps you can use a FlowLayoutPanel[^] and when you disable a picture box inside, you rearrange the order.
 
Share this answer
 
Use Visible property to control visibility and the Location property to set its location.

PictureBox1.Visible = true;
PictureBox1.Location = new Point(20,20);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900