Dim Open As New OpenFileDialog()
Dim myStreamReader As System.IO.StreamReader
Open.Filter = "All Files [*.*]|*.*"
Open.CheckFileExists = True
Open.Title = "Open"
Open.ShowDialog(Me)
Try
Open.OpenFile()
myStreamReader = System.IO.File.OpenText(Open.FileName)
Me.PictureBox1 = myStreamReader.ReadToEnd
DisasterPiece -2
Light Poster
codeorder
commented:
inadequate information provided for the question -2
Recommended Answers
Jump to PostTo read an image from the file to a picturebox control:
Me.PictureBox1.Image = Image.FromFile("C:\Temp\somepicture.jpg")
I guess that's what you were looking for. And remember to read codeorder's comment about your question...
All 2 Replies
Reply to this topic
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.