D
Derek Martin
Hi there, I have a couple of bitmaps that are called in my project that I
need to use. They were added to my solution as existing objects and are
located in the same folder as the rest of the vb files.
I set their Build Action to Embedded Resource and compiled without any
errors, however, when calling them, like this inside Initialize Components:
myclosebutton.SetCloseBitmap(New Bitmap(MyClass.GetType(), "close.bmp"),
Color.FromArgb(255, 0, 255), New Point(127, 8))
I get this error:
An unhandled exception of type 'System.ArgumentException' occurred in
system.drawing.dll
Additional information: Resource 'close.bmp' could not be found in class
'InnerView.InnerView.main'.
Help!???
Thanks,
Derek
need to use. They were added to my solution as existing objects and are
located in the same folder as the rest of the vb files.
I set their Build Action to Embedded Resource and compiled without any
errors, however, when calling them, like this inside Initialize Components:
myclosebutton.SetCloseBitmap(New Bitmap(MyClass.GetType(), "close.bmp"),
Color.FromArgb(255, 0, 255), New Point(127, 8))
I get this error:
An unhandled exception of type 'System.ArgumentException' occurred in
system.drawing.dll
Additional information: Resource 'close.bmp' could not be found in class
'InnerView.InnerView.main'.
Help!???
Thanks,
Derek