Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. image and my.resources (wpf)

image and my.resources (wpf)

Scheduled Pinned Locked Moved Visual Basic
graphicscsharpwpfhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Roberto Monza
    wrote on last edited by
    #1

    :confused: :confused: :confused: I've defined an image control (System.Windows.Controls.Image) I need to set the image.source property at the run time setting an image loaded from my.resources image.source = system.windows.media.imagesource my.resources è un tipo system.drawing.bitmap If i try to directly assign my,resources.image i got "Cannot convert "System.Drawing.Bitmap" into "System.Windows.Media.ImageSource" Can someone help me? Bob1970

    S 1 Reply Last reply
    0
    • R Roberto Monza

      :confused: :confused: :confused: I've defined an image control (System.Windows.Controls.Image) I need to set the image.source property at the run time setting an image loaded from my.resources image.source = system.windows.media.imagesource my.resources è un tipo system.drawing.bitmap If i try to directly assign my,resources.image i got "Cannot convert "System.Drawing.Bitmap" into "System.Windows.Media.ImageSource" Can someone help me? Bob1970

      S Offline
      S Offline
      Shimmy Weitzhandler
      wrote on last edited by
      #2

      Take a look here[^]

      Shimi

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups