I have several pictureboxes added in FlowLayutPanel, There is and index which have a number of picture box im lookin at, i can change this index by buttons. How can i configure my FlowLayoutPanel.VerticalScroll that i could look only at the picture box with name of my index, and i couldnt look at another picture boxes. I suggest that i have to change FlowLayoutPanel.VerticalScroll.Minimum and Maximum, but i can`t, if i change minimum - it countinue to be 0. here is a code:
flowLayoutPanel1.Dock = DockStyle.Fill;
flowLayoutPanel1.FlowDirection = FlowDirection.TopDown;
flowLayoutPanel1.Controls.Add(pictureBox3);
flowLayoutPanel1.Controls.Add(pictureBox2);
flowLayoutPanel1.Controls.Add(pictureBox1);
flowLayoutPanel1.Controls.Add(pictureBox4);
flowLayoutPanel1.AutoScroll = true;
flowLayoutPanel1.WrapContents = false;
MessageBox.Show( flowLayoutPanel1.VerticalScroll.Maximum.ToString());
this.flowLayoutPanel1.VerticalScroll.Minimum = 300;
MessageBox.Show(flowLayoutPanel1.VerticalScroll.Minimum.ToString());
flowLayoutPanel1.PerformLayout();
How can i do that?