code is working for local system. whenever path of my server foler is-- \\182.162.4.125\c$\hr\Uploads If empid.Text = String.Empty Then picEmpProfile.BackgroundImage = Image.FromFile(Application.StartupPath & "\Uploads\Bears.jpg") Else picEmpProfile.BackgroundImage = Image.FromFile(Application.StartupPath & "\Uploads\" & empid.Text & ".jpg") End If
WebRequest request = WebRequest.Create("http://www.MyDomain.com/Resources/Images/Logos/MyPicture.png"); WebResponse response = request.GetResponse(); Stream stream = response.GetResponseStream(); pictureBox1.Image = Bitmap.FromStream(stream);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)