locked
JPG Image RRS feed

  • Question

  • How can I view a jpg image when select icon for viewer
    Sunday, February 9, 2014 9:15 PM

Answers

  • Hi slimhom,

    Please clarify details about your problem. It is winform forum so if you are consulting how to open a jpeg file, please check this thread:

    http://stackoverflow.com/questions/2069048/setting-the-filter-to-an-openfiledialog-to-allow-the-typical-image-formats

    It is about how to set openfiledialog filter and below is the code:

    dialog.Filter = "JPEG Files (*.jpeg)|*.jpeg|PNG Files (*.png)|*.png|JPG Files (*.jpg)|*.jpg|GIF Files (*.gif)|*.gif";

    If you are not asking a develop question, then it is offtopic here and you'd better share more details.

    Regards,



    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Barry Wang Monday, February 17, 2014 9:34 AM
    Tuesday, February 11, 2014 2:05 AM

All replies

  • Hi slimhom,

    Please clarify details about your problem. It is winform forum so if you are consulting how to open a jpeg file, please check this thread:

    http://stackoverflow.com/questions/2069048/setting-the-filter-to-an-openfiledialog-to-allow-the-typical-image-formats

    It is about how to set openfiledialog filter and below is the code:

    dialog.Filter = "JPEG Files (*.jpeg)|*.jpeg|PNG Files (*.png)|*.png|JPG Files (*.jpg)|*.jpg|GIF Files (*.gif)|*.gif";

    If you are not asking a develop question, then it is offtopic here and you'd better share more details.

    Regards,



    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Barry Wang Monday, February 17, 2014 9:34 AM
    Tuesday, February 11, 2014 2:05 AM
  • For this forum the answer is simple. However, like Barry allready wrote in a way, elaborate the problem a little bit better because it seems you read the image from a database or something like that.

    YourPictureBox.Image = Image.FromFile("the path")

    In C type program language add a semicolon at the end.


    Success
    Cor

    Tuesday, February 11, 2014 9:42 AM