private void PhotoUploadBtn_Click(object sender, EventArgs e) { UploadPhotoForm uploadPhoto = new UploadPhotoForm(this.photoUrl); uploadPhoto.ShowDialog(); this.photoUrl = uploadPhoto.url; this.PhotoBox.Load(this.photoUrl); }
private void PhotoUploadBtn_Click(object sender, EventArgs e) { UploadPhotoForm uploadPhoto = new UploadPhotoForm(url); uploadPhoto.ShowDialog(); url = uploadPhoto.url; try { this.PhotoBox.Load(url); } catch (Exception ex) { } }