Seb83390
Messages postés4Date d'inscriptionvendredi 29 mai 2009StatutMembreDernière intervention18 septembre 2009
-
29 mai 2009 à 17:38
Seb83390
Messages postés4Date d'inscriptionvendredi 29 mai 2009StatutMembreDernière intervention18 septembre 2009
-
29 mai 2009 à 17:54
Bonjour,
Je cherche a insérer une image dans une PictureBox a partir d'un OpenFile.
J'ai fait plusieurs recherche sur internet sans résultat.
Pouvez-vous me fournir les bon codes pour effectuer cela.
Mayzz
Messages postés2813Date d'inscriptionmardi 15 avril 2003StatutMembreDernière intervention 2 juin 202028 29 mai 2009 à 17:47
Bonjour,
Voici pour toi :
Dim OFD As New OpenFileDialog
With OFD
.Title = "Ins‚rer une image"
.Filter = ("Tous fichiers images |*.wmf,*.jpg;*.jpeg;*.bmp;*.png;*.gif")
.Multiselect = False
If .ShowDialog = Windows.Forms.DialogResult.OK Then
PictureBox1.Image = New Bitmap(.FileName)
End If
End With