pvaju896
pvaju896

Reputation: 1417

Dynamically set Image of a Picturebox in winforms applications?

I gets the application.startuppath like below;

C:\Documents and Settings\aju\my documents\visual studio 2010\Projects\gManager\gManager\bin\Debug

And i have a image here to set for picturebox ..\Images\Image1.jpg

what should i do to set the image property of picturebox ?

Upvotes: 2

Views: 5442

Answers (2)

Andrew Paglusch
Andrew Paglusch

Reputation: 845

pictureBox1.Load(path_to_picture)

Upvotes: 3

Joy George Kunjikkuru
Joy George Kunjikkuru

Reputation: 1528

If you want to set in design time just browse otherwise use PictureBox.Load.

Upvotes: 1

Related Questions