Hi i have a path of an image in a textbox which i would liek to display in a picturebox.. How can i do that pls?

PictureBox1.Image = TextBox1.Text
PictureBox1.ImageLocation = TextBox1.Text
//textBox1.Text="C:\pic\pic1.gif";
pictureBox1.Image = new Bitmap(@textBox1.Text);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.