le_geronimo_cs
Messages postés8Date d'inscriptionmardi 5 avril 2005StatutMembreDernière intervention23 mars 2006
-
15 mars 2006 à 16:54
BasicInstinct
Messages postés1470Date d'inscriptionmardi 5 février 2002StatutMembreDernière intervention20 octobre 2014
-
16 mars 2006 à 08:42
bonjour ,
voila j'ai un boutton parcourir
et je voudrais qu'une fois avoir selectionner mon image elle apparaisse dans mon objet IMAGE mais je ne connais pas le code^^
Private Sub Command1_Click()
CommonDialog1.Filter = "*.*"
CommonDialog1.ShowOpen
End Sub
Private Sub Image1_Click()
End Sub
A voir également:
Boutton parcourir pour ouvrir un image dans un objet image
BasicInstinct
Messages postés1470Date d'inscriptionmardi 5 février 2002StatutMembreDernière intervention20 octobre 201412 16 mars 2006 à 08:42
je pensais plutot à un truc dans le style :
CommonDialog1.Filter = "*.*"
CommonDialog1.ShowOpen
On Error Resume Next
Image1.Picture = LoadPicture(CommonDialog1.FileName)
if err.number<>0 then
msgbox err.number & " : " & err.description
err.clear 'vide l'erreur
end if
on Error Goto 0 ' arrete la gestion d'erreur
va faire un petit tour sur la msdn, ("on error") tu trouveras differentes facons de faire