0

Right now i am using the method where i put the picture in a picbox, then save it as a .bmp then use SystemParametersInfo function to set the picture.
I do not like this because of one main reason: it takes huge amount of ram for a simple program such as this.

If anyone could help me out with a simpler/less ram consuming way to do this, it will be much appreciated. ;)

3
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by waynespangler
0

Try this:

Imports System.Drawing

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.BackgroundImageLayout = ImageLayout.Stretch
        Me.BackgroundImage = Image.FromFile("C:\Graphics\tree1.jpg")
    End Sub
End Class
0

Desktop background not the application background

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.