P
Peter Zentner
Hi,
I have a bitmap as an embedded resource. Now I want to use that bitmap for a
background image of a button. But if I do the following it doesn't work.
<snap start>
Dim s As System.IO.Stream =
Me.GetType().Assembly.GetManifestResourceStream("WindowsApplication1.Bitmap1
..bmp")
Dim bmp as bitmap = New Bitmap(s)
s.Close()
Dim img As Image = bmp
Button1.BackgroundImage = bmp
<snap end>
What am I doing wrong?
TIA
Peter
I have a bitmap as an embedded resource. Now I want to use that bitmap for a
background image of a button. But if I do the following it doesn't work.
<snap start>
Dim s As System.IO.Stream =
Me.GetType().Assembly.GetManifestResourceStream("WindowsApplication1.Bitmap1
..bmp")
Dim bmp as bitmap = New Bitmap(s)
s.Close()
Dim img As Image = bmp
Button1.BackgroundImage = bmp
<snap end>
What am I doing wrong?
TIA
Peter