private void ShowPhotoForm_Load(object sender, EventArgs e) { previousBtn.Enabled = false; sourcePage = wp.GetSourcePage(idAvito.Invoke()); string url = wp.GetPhotoLink(sourcePage, photoNum); try { photoPictureBox.Load("http:" + url); } catch (ArgumentException) { MessageBox.Show("Фотографии отстутствуют!"); Close(); } }