G
Guest
I have some code that loads JPG files into a PictureBox control. It works fine if the file is small, but files over 100K cause an Argument Exception error.
Since the compact frame work does not have:
picbox.image.fromfile("...")
I had to do it this way:
Dim MyImage As Bitmap
MyImage = New Bitmap(OpenFileDialog.FileName)
picbox.Image = CType(MyImage, Image)
It fails on New Bitmap(). I’ve seen other message threads about these bit map size problem, but no solution.
How can I view these larger files on my hand held? IE seems to handle it.
Thanks.
Since the compact frame work does not have:
picbox.image.fromfile("...")
I had to do it this way:
Dim MyImage As Bitmap
MyImage = New Bitmap(OpenFileDialog.FileName)
picbox.Image = CType(MyImage, Image)
It fails on New Bitmap(). I’ve seen other message threads about these bit map size problem, but no solution.
How can I view these larger files on my hand held? IE seems to handle it.
Thanks.