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
codeorder commented: inadequate information provided for the question -2

Recommended Answers

All 2 Replies

Oh and readtoend wont work with Picturebox1

To 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...

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.