I have to display a picture in a picture box in vb.net form but i donot want to give full path of the pic i want just to specify a relative path how it could be done
?????
virus220
0
Newbie Poster
Recommended Answers
Jump to Postput the images beside the application and call it by its name directly
likeImage img = Image.FromFile(Application.StartupPath + ImageName + ".jpg); /* it returns the path needed to get the image*/
All 4 Replies
sunchica
0
Newbie Poster
Ramy Mahrous
401
Postaholic
Featured Poster
Leodumbi
0
Light Poster
GeekByChoiCe
152
Practically a Master Poster
Featured Poster
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.