Hi imshz,
Using PictureBox to show the image you need to set the Image property of it. Therefore you need to create an instance of Image class. Image class offers some methods that let you create the image instance. For example: Image.FromFile, Image.FromStream. Bitmap and jpeg files are supported by the .NET. But .cgm may be not.
I think you’d better first convert the image file to the .NET supported file type and then create the Image instance. How to convert it to the .NET supported file type is beyond the support scope of this forum. You can either search it on the net or contact software vendor (cgm file reader tool or creator tool) for help.
Thank you for your understanding. If you have any other question, please feel free to tell me.
Sincerely,
Kira Qian
Send us any feedback you have about the help from MSFT at fbmsdn[At]microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the
All-In-One Code Framework!