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. Embedded images in a uer control

Embedded images in a uer control

Scheduled Pinned Locked Moved Visual Basic
hardwarehelp
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.
  • T Offline
    T Offline
    tibmark
    wrote on last edited by
    #1

    :mad:I am having difficulty reading the images. I want the images to be embedded so that the are built into the .dll of the control. Every time i try and use my control i get 'null is not a valid value for stream.' i have verified the names of my control, image , .dll name. i have also tried diferent variations to get the image. Please help. :confused:

    C 1 Reply Last reply
    0
    • T tibmark

      :mad:I am having difficulty reading the images. I want the images to be embedded so that the are built into the .dll of the control. Every time i try and use my control i get 'null is not a valid value for stream.' i have verified the names of my control, image , .dll name. i have also tried diferent variations to get the image. Please help. :confused:

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I think I have it. I had a similar problem in a C# project, the IDE kept changing the line that creates the ResourceManager, and I had to change it to something like this or I got the same error: Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(MyControlType)) I believe if you create your ResourceManage with this line and then use it to load your Bitmap, there's a good chance it will work. Christian Graus - Microsoft MVP - C++

      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