none
Visual Basic : picture box won't load my image. RRS feed

  • Question

  • Hello everybody,

    I have an image box in my visual basic project. When I try to add a resource image to it, it simply does not load the image.

    This problem also occurs with background images. However, when I load the image via Local rather than .resx, it works.

    Any suggestions or fiixes?

    Thursday, July 4, 2019 4:38 PM

All replies

  • Hi,

    my demo works well,Is there anything different?

    code:

      Me.PictureBox1.Image = My.Resources.Resource1.night

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, July 5, 2019 5:03 AM
    • How large are the images that will not load?
    • How are you performing the load, might help to show your code for loading from resources.
    • What do you mean by local?
    • Are there any error messages?

    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Friday, July 5, 2019 10:57 AM
    Moderator