1. 使用绝对路径绑定
pictureBox1.Image = Image.FromFile(@"F:\logo.jpg");
2. 使用相对路径绑定
//从应用程序的可执行文件的路径中读取图片
pictureBox1.Image = Image.FromFile(Application.StartupPath + @"\logo.jpg");
//pictureBox1.Image = Image.FromFile(@".\logo.jpg");
3. 使用URL绑定
//图片的URL
string url = string.Format(@"http://img05.tooopen.com/images/20140604/sy_62331342149.jpg");
pictureBox1.Image = Image.FromStream(System.Net.WebRequest.Create(url).GetResponse().GetResponseStream());