| |||||
| Dernière réponse | |
|---|---|
| Sujet : DriveListBox en VB | |
| Doudos | Je pense que c'est ce que tu cherches ...
Private Sub Drive1_Change() On Error Resume Next OldPath$ = Dir1.Path Dir1.Path = Drive1.Drive If Err = 68 Then Dir1.Path = OldPath$ MsgBox "Message d'erreur !", vbCritical + _ vbOKOnly, "Error" Drive1.Drive = "C:\" Dir1.Path = "C:\Mes documents" File1.Path = Dir1.Path End If End Sub |
| Vue Rapide de la discussion |
|---|