Results 1 to 2 of 2

Thread: Image Not displaying in my image control

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2025
    Posts
    2

    Image Not displaying in my image control

    This is my code to add an image to the image control:
    Dim bitmapImage As New BitmapImage()


    Dim uri As New Uri("c:\Users\kgs19\Documents\My Cover Art\Img.png", UriKind.RelativeOrAbsolute)
    bitmapImage.UriSource = uri
    ImageCoverArt.Source = bitmapImage

    ImageCoverArt.Visibility = Visibility.Visible

    If I put the file path in the source of the xaml the picture displays. But when I do it programmically it doesn't show. Anything I am missing?

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,413

    Re: Image Not displaying in my image control

    That looks like a WPF question. You’re asking in the VB.Net General forum. You need to use the WPF forum…

    https://www.vbforums.com/forumdisplay.php?86-WPF-WCF-WF

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width