Les Snippets

Connexion

Modifier le fond d'écran de votre bureau windows

Niveau requis pour utiliser/comprendre cette source : 1 ( Débutant )
Créé le 27/07/2006 20:40:46 et initié par romagny13 [Liste]
Date de mise à jour : 09/04/2007 12:33:26
Vue : 23119
Catégorie(s) : Divers, Graphique
Langages dispo pour ce code :
- C# 2.x
- VB 2005
- mIRC
- Delphi 5
- Delphi 5
- Voir tous les langages pour ce code snippet



Langage : VB 2005
Date ajout : 28/07/2006
Posté par romagny13 [Liste]
<Runtime.InteropServices.DllImport("user32.dll", CharSet:=Runtime.InteropServices.CharSet.Auto)> _ 
Public Shared Function SystemParametersInfo(ByVal uAction As Integer, ByVal uParam As Integer, ByVal lpvParam As String, ByVal fuWinIni As Integer) As Integer

End Function


Public Sub definir_arriere_plan_bureau() 
    Dim odlg As New OpenFileDialog 
    odlg.Filter = "Images Bitmap (*.bmp,*.BMP)|*.BMP;*.BMP"

    If odlg.ShowDialog = Windows.Forms.DialogResult.OK Then 
        Dim filename As String = odlg.FileName 
        Dim subname As String

        If filename.Length > 3 Then

            subname = filename.Substring(filename.Length - 3, 3)

            If subname = "bmp" OrElse subname = "BMP" Then
                SystemParametersInfo(20, 0, filename, 1 Or 2) 
                'MessageBox.Show("L'image définie est désormais ","Bureau modifié"+System.Environment.UserDomainName);

            Else

                'MessageBox.Show("selectionner une image bitmap (.BMP) ","Attention..."); End If

            End If

        End If

End Sub


Snippets en rapport avec : Image, Écran, Bureau, Wallpaper, Fond



Codes sources en rapport avec : Image, Écran, Bureau, Wallpaper, Fond

{Visual Basic, VB6, VB.NET, VB 2005} MODIFICATION DU PAPIER PEINT/FOND D'ÉCRAN DU BUREAU
Ce code sert simplement à modifier le fond d'écran de votre bureau. ...

{Visual Basic, VB6, VB.NET, VB 2005} MFE : MODIFICATEUR DE FOND D'ECRAN AUTOMATIQUE
C'est un programme très sympa qui change le fond d'écran automatiquement à chaque démarrage, tous le...

{Delphi} WALLPAPERCAM
Insertion capture webcam sur le papier peint du bureau ou remplacement du papier peint par la captur...

{Visual Basic, VB6, VB.NET, VB 2005} FROSTDESKTOP 2007 - DES ÉCRANS VIRTUELS À LA LINUX
Bonjour à tous, je poste ici ma première source sur VBFrance.com. Il sagit d'un logiciel qui permet...

{Delphi} WALLPAPER - CHANGEMENT AUTOMATIQUE DU FOND D'ECRAN
Permet de modifier votre fond d'écran aléatoirement...

{C / C++ / C++.NET} DESSIN SUR ÉCRAN (TRÈS SIMPLE)
Source en C, fonctionne tel quel en C++. Uitlise l'API Windows. Mis à jour (1.0.1). Merci vecchio56...

{Delphi} TRANSPARENCE DANS LA FORM (TROUS)
Voici une source permetant de voir comment faire un trou dans une form et (sur la form2) la transpar...

{Visual Basic, VB6, VB.NET, VB 2005} EASY WALLPAPER
c'est un programme qui change votre fon d'ecran tout simplement...

{IRC} WALLPAPERS POUR VOTRE BUREAU
N'ayant plus d'idées de scripts à développer voici la seule chose que j'ai trouvé à faire : Cet a...

{Visual Basic, VB6, VB.NET, VB 2005} CHANGEZ SON WALLPAPER SIMPLEMENT.
Ce code n'est pas entierement de moi, je l'ai adapter pour l'utiliser plus facilement, ce code perme...