M
Michael Murphy
At the risk of being publically humiliated, might I ask the following
simple question.
I have a solution with one project. This project, WindowsApplication1,
has one "form" and one "bitmap" (the bitmap created by right clicking
on the project, selecting add new item, then add bitmap file). The
project explorer says my bitmap is called "Bitmap1.bmp".
If I have a function in my project declared as
Public Function getBitmap() As Bitmap
How do I return this bitmap using this function?
I have looked at the the contructor for "Bitmap" and it has 12
versions, one of which is to pass the filename. I don't want to do
this because then it says my bitmap has to be in a certain location on
the disk - I just want to reference the bitmap already in the project
but can't see how to do it without needing to know the filename
(either directly or through a stream or input reader).
So am I missing something and it isn't easy?
Thank you
Michael
simple question.
I have a solution with one project. This project, WindowsApplication1,
has one "form" and one "bitmap" (the bitmap created by right clicking
on the project, selecting add new item, then add bitmap file). The
project explorer says my bitmap is called "Bitmap1.bmp".
If I have a function in my project declared as
Public Function getBitmap() As Bitmap
How do I return this bitmap using this function?
I have looked at the the contructor for "Bitmap" and it has 12
versions, one of which is to pass the filename. I don't want to do
this because then it says my bitmap has to be in a certain location on
the disk - I just want to reference the bitmap already in the project
but can't see how to do it without needing to know the filename
(either directly or through a stream or input reader).
So am I missing something and it isn't easy?
Thank you
Michael