Since you insist of keeping the error message itself secret, it becomes extremely difficult for us to divine exactly what you are doing wrong. In any case, this appears to be code that can be easily debugged to determine the cause of the error.
On Jun 15, 1:20 am, "Scott M." <[email protected]> wrote: > I am having a problem trying to use two tiny bitmaps that I placed in > a resource file. The bitmaps are a green checkmark and a red X. I have > the following code; > > ResourceManager resourceManager = new > ResourceManager("RaptorAccessoryTest.Properties.Resources", > GetType().Assembly); > > Bitmap image = (Bitmap)resourceManager.GetObject("GreenCheck"); > > Now I want to use the bitmap. I get the error when I run; > > pictBarcodeTest.Image = image; > > so I tried this instead, with no success; > > pictBarcodeTest.Image = new Bitmap(image); > > What am I doing wrong? > > Scott
