Brice
-
30 oct. 2000 à 15:26
ToNYDEVIL
Messages postés1Date d'inscriptionjeudi 20 octobre 2005StatutMembreDernière intervention 9 novembre 2007
-
9 nov. 2007 à 15:21
Dans une feuille j'utilise les controles suivants :
Drivelistbox
Dirlistbox
filelistbox
textbox
J'aimerais savoir comment faire pour afficher dans la textbox, le chemin d'acces ainsi que le nom du fichier que je selectionne dans la filelistbox.
Merci
Private Sub Drivelistbox_Change()
DirListBox.Path = Drivelistbox.Drive
End Sub
Private Sub DirListBox_Change()
filelistbox.Path = DirListBox.Path
End Sub
Private Sub filelistbox_Click()
textbox.Text = DirListBox.Path & "" & filelistbox.filename 'Attention, si le file est dans c:, il ne faut pas mettre ""
End Sub
J'espère que j'ai répondu à ta question. Merci de m'envoyer un mail pour me dire si ça marche.
ToNYDEVIL
Messages postés1Date d'inscriptionjeudi 20 octobre 2005StatutMembreDernière intervention 9 novembre 2007 9 nov. 2007 à 15:21
mon probleme est le meme (enfin je pense)
mais ta solution ne m'aide pas, je suis newbie en VB donc...
enfin voila
j'ai mes
Drivelistbox
Dirlistbox
filelistbox et un textbox aussi ...
mais je veu les afficher dans ma textbox de facon a avoir comme un chemin
Drive + dir + file = text in box
genre:
textbox = C:\Documents and Settings\help_me.xls