I am trying to roll my own control and am a bit stuck with the bitmap.
Private myBmp As Bitmap
Public Sub New()
Dim myStream As System.IO.Stream
myStream =
Me.GetType().Assembly.GetManifestResourceStream("b utton1.bmp") /* <-- this
resolves to Nothing, not System.Drawing.Bitmap */
myBmp = New Bitmap(myStream )
End Sub
In my solution's project I have a bitmap called button1.bmp with a build
action of Embedded Resource. Any ideas what I am doing wrong? the code and
the bitmap name are spelled the same.
Thanks,
Eric