Question Form BackgroundImage position

Just set the form's BackgroundImage property and add this code:
VB.NET:
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
        If Me.BackgroundImage IsNot Nothing Then
            e.Graphics.Clear(Me.BackColor)
            e.Graphics.DrawImage(Me.BackgroundImage, Me.ClientSize.Width - Me.BackgroundImage.Width, Me.ClientSize.Height - Me.BackgroundImage.Height)
        End If
    End Sub
 

Latest posts

Back
Top