Home All Groups Group Topic Archive Search About

Picture box will not show picture

Author
1 Feb 2006 3:56 PM
cj
How can I get the picture to show?  They're .jpg files.

For Each File As System.io.FileInfo In FileInfo
   Label1.Text = File.FullName
   PictureBox1.Image.FromFile(File.FullName)
   Application.DoEvents()
   System.Threading.Thread.Sleep(2000)
Next

Author
1 Feb 2006 4:06 PM
Herfried K. Wagner [MVP]
"cj" <cj@nospam.nospam> schrieb:
> How can I get the picture to show?  They're .jpg files.
>
> For Each File As System.io.FileInfo In FileInfo
>   Label1.Text = File.FullName
>   PictureBox1.Image.FromFile(File.FullName)


\\\
Me.PictureBox1.Image = Image.FromFile(File.FullName)
///

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
1 Feb 2006 4:43 PM
cj
Great.  Thanks.


Herfried K. Wagner [MVP] wrote:
Show quoteHide quote
> "cj" <cj@nospam.nospam> schrieb:
>> How can I get the picture to show?  They're .jpg files.
>>
>> For Each File As System.io.FileInfo In FileInfo
>>   Label1.Text = File.FullName
>>   PictureBox1.Image.FromFile(File.FullName)
>
>
> \\\
> Me.PictureBox1.Image = Image.FromFile(File.FullName)
> ///
>