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