private void ptb_avatar_Click_1(object sender, EventArgs e) { //OpenFileDialog ofd = new OpenFileDialog(); //ofd.Filter = "png file (*.png)|*.png"; //if(ofd.ShowDialog()==DialogResult.OK) //{ // ptb_avatar.Image = Image.FromFile(ofd.FileName); //} Personal_information ps_if = new Personal_information(1214325, _userName, _email, _status, _image, client); ps_if.MyGetValue = new Personal_information.GetData(this.GetValue); ps_if.Show(); }