How do I set a picture as the wallpaper stretch, center, or tile?
Printable View
How do I set a picture as the wallpaper stretch, center, or tile?
can anyone please help me?
Right click on ur desktop, select properties. Now in the backgroud tab select browse and locate the picture. Then set it as a wallpaper.
Is that what u want ?
HAHAHAHAHAHAHAHA.Quote:
Originally posted by techyspecy
Right click on ur desktop, select properties. Now in the backgroud tab select browse and locate the picture. Then set it as a wallpaper.
Is that what u want ?
Dude! I mean using VB!!!! This is call VBForums, isn't it?
To set the wallpaper you can use
SystemParametersInfo API.
Sure it is. But i have seen people asking questions in this forum that has nothing to do with Computer world in the first place.Quote:
Originally posted by XSawFishX
Dude! I mean using VB!!!! This is call VBForums, isn't it?
So do not get Angry on me.
Let me check your "using VB issue .."
Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long
Private Const SPI_SETDESKWALLPAPER = 20
Private Sub Command1_Click()
Dim lngSuccess As Long
Dim strBitmapImage As String
CommonDialog1.ShowOpen
strBitmapImage = CommonDialog1.FileName
lngSuccess = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, strBitmapImage, 0)
End Sub
This is the simplest way to set the wallpaper .....