You get an exception because the .pic format is not supported. The supported
formats are .bmp, .gif, .png, .jpg. If your .pic files are actually JPEG,
then you will may need to rename them. If these are actually MAC (?) files,
you will need to convert them on the desktop
--
Alex Feinman
---
Visit
http://www.opennetcf.org
"Debu Das" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> In my application i want to display picture in PictureBox.
> I do not have problem in displaying ".jpg" files but i get exception
> while displaying ".pic" files.
> Below is the code that i am using in the application
> Dim PicImage As Bitmap
> PicImage = New Bitmap("1000.PIC")
> PictureBox1.Image = PicImage
>
> I am getting error Message "Invalid parameter used." using the above
> code.
>
> Is there any other way of displaying the ".pic" file
>
> Any suggestion will be highly appreciated.
>
> Thanks,
>
> Debu