I posted a question about how to have an image on a form
and be able to draw on it.
I was advised to create an image from an embedded
resource.
then draw on the image using the MouseDown event.
I have A background image but am not able to draw on it.
Is there another way i should be doing this.
Public Sub New()
backgroundImage = New Bitmap
([Assembly].GetExecutingAssembly
().GetManifestResourceStream("BkgndImage.MyBkgnd.jpg"))
InitializeComponent()
End Sub
Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)
e.Graphics.DrawImage(backgroundImage,
Me.ClientRectangle, New Rectangle(0, 0,
Me.backgroundImage.Width, Me.backgroundImage.Height),
GraphicsUnit.Pixel)
End Sub
thanks
adam