private void Form1_Shown(object sender, EventArgs e) { Class1 qwe = new Class1(); Text = qwe.i.ToString(); pictureBox1.Image = qwe.getImage(); }