in former times ( ;) ) it was possible to set an index picturebox(1); picturebox(2);...
but now - in C#?
Is there anything similar?
Thanks a lot
CS
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Christoph SattlerPosted Feb 2, 2015, 12:21 PM
CS
VulpesPosted Jan 31, 2015, 1:48 PM
Christoph SattlerPosted Jan 31, 2015, 11:06 AM
thats exactly what I needed.
One more question: this is ok:
public partial class Form1 : Form
{
int z;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
PictureBox[] pb = {pictureBox1,pictureBox2,pictureBox3,pictureBox4,pictureBox5};
pb[0].Visible = false;
}
}
}
but if I use the line:
PictureBox[] pb = {pictureBox1,pictureBox2,pic....
above : public Form1()
like int z; as a global or public variable it seems not to be allowed?!
CS
VulpesPosted Jan 30, 2015, 2:01 PM