Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display images stored in a network share?

Status
Not open for further replies.

anurc

Programmer
Jul 11, 2002
18
US
I have a client-server application, in which my client applications display images stored in a server machine(in a network share). Please advise me, how to do the coding in vb.net? What is best way to do this?
 
There are probably several ways to do this, here is one way.

I tend to use mapped drives since some of my customers still have old netware servers that really like mapped drives.

Me.PictureBox1.Image = System.Drawing.Image.FromFile("F:\Images\PIC001.BMP")

In the real world, I would most likely have the path as a global variable set from some other location.

Me.PictureBox1.Image = System.Drawing.Image.FromFile(gsImageLocation & sPicName)

gsImageLocation = "F:\Images\"
sPicName = "PIC001.BMP"

Kris Brixon [pc3]
 
thanks.

So that means the photo share should be mapped before the application starts, so that the pictures will be displayed in a picture box?

 
Well, yea. You would most likely have the drive mapped as they log in to the network.

Kris Brixon [borg2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top