Acces common dialog microsoft

zolt4n Messages postés 35 Date d'inscription mercredi 1 juin 2005 Statut Membre Dernière intervention 4 août 2005 - 4 août 2005 à 10:09
ShareVB Messages postés 2676 Date d'inscription vendredi 28 juin 2002 Statut Membre Dernière intervention 13 janvier 2016 - 11 août 2005 à 11:47
chalut jai un common dialog microsoft .
J'aimerai faire deux chose
1.pouvoir ne faire que une ligne dans ma boite ouvrir avec juste un champs image qui regroupe gif et jpg
2.pouvooir faire qqch de limage que jai selectionner a la main ^^

voici mon code

private sub command1_clik()
commondialog.filter = "JPG (*.jpg)|*.jpg|" & " GIF (*.gif) |*.gif|"
commondialog.showopen
end sub


Voila alors en 1
j'aimerai faire un truc du genre
commondialog.filter = "Images (*.jpg et *.gif )|*.jpg| & |*.gif|"
mais sa marche pas

En 2. j'aimerai qd je clic sur limage que le lien de limage aille dans ma text box photo
photo = commondialog.value
mais sa marche pas non plus merci de maider
Zolt4n

1 réponse

ShareVB Messages postés 2676 Date d'inscription vendredi 28 juin 2002 Statut Membre Dernière intervention 13 janvier 2016 26
11 août 2005 à 11:47
salut,



1) commondialog.filter = "Images (*.jpg et *.gif )|*.jpg;*.gif"



2) après showopen : photo = commondialog.filename

ShareVB
0
Rejoignez-nous