السلام عليكم و رخمة الله و بركاته
هذي اكواد بسيطه انتوا في غنى عنها لانكم خبراء
ان شاء الله استفيد بخبرتكم :
الكود الاول :
تغيير خلفية الجهاز
CODE
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
Public Const SPI_SETDESKWALLPAPER = 20
Private Sub Command1_Click()
Dim lngSuccess As Long
Dim strBitmapImage As String
strBitmapImage = "c:windowsstraw.bmp"
lngSuccess = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, strBitmapImage, 0)
End Sub
هذي اكواد بسيطه انتوا في غنى عنها لانكم خبراء
ان شاء الله استفيد بخبرتكم :
الكود الاول :
تغيير خلفية الجهاز
CODE
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
Public Const SPI_SETDESKWALLPAPER = 20
Private Sub Command1_Click()
Dim lngSuccess As Long
Dim strBitmapImage As String
strBitmapImage = "c:windowsstraw.bmp"
lngSuccess = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, strBitmapImage, 0)
End Sub