sil vous plait abonner vous ! commenter x) http://hackcod.fr Code : -Placez 2 Boutton : le 1er : nomer le Chercher le 2eme : nomer le sauvegarder -2 picture box -une textbox dans le boutton "Chercher" entrez le code suivant : Code : PictureBox1.ImageLocation = "http://avatar.xboxlive.com/avatar/" + TextBox1.Text + "/avatar-body.png" PictureBox2.ImageLocation = "http://avatar.xboxlive.com/avatar/" + TextBox1.Text + "/avatarpic-l.png" -Dans le boutton "sauvegarder" entrez le code suivant : Code : Dim SaveFileDialog1 As New SaveFileDialog SaveFileDialog1.Title = "Enregistrez l'image sous ..." SaveFileDialog1.Filter = "PNG|.png|JPEG|*.jpg|GIF|*.gif" If SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then Dim ImageFormatToUse As Imaging.ImageFormat = Imaging.ImageFormat.Png If SaveFileDialog1.FilterIndex = 0 Then ImageFormatToUse = Imaging.ImageFormat.Png If SaveFileDialog1.FilterIndex = 1 Then ImageFormatToUse = Imaging.ImageFormat.Jpeg If SaveFileDialog1.FilterIndex = 2 Then ImageFormatToUse = Imaging.ImageFormat.Gif PictureBox1.Image.Save(SaveFileDialog1.FileName, ImageFormatToUse) End If dotnetbar code : Inherits DevComponents.DotNetBar.Office2007Form code pour embarquer la vidéo : >>> http://www.youtube.com/embed/KJFFFzhm6r4 <<< |