Hi all,
i'm working on .NET Compact Framework using VB.
i found this code, it puts the image as a background on the form.
HTML Code:
Protected Overrides Sub OnPaint(e As PaintEventArgs)

    ' Get image compiled as an embedded resource.
    Dim asm As Assembly = Assembly.GetExecutingAssembly()
    Dim backGroundImage As New Bitmap(asm.GetManifestResourceStream("mypicture.bmp"))
    
    e.Graphics.DrawImage(backgroundImage, Me.ClientRectangle, _
        New Rectangle(0, 0, backgroundImage.Width, backgroundImage.Height), _
        GraphicsUnit.Pixel)

End Sub   
this code is giving me an error: no valid namespace.

any help?
and is this code useful to load an image that is stored outside as a background?

thanx.