1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
'Déclaration des variables
Public strFiche As String
Public strChemin As String
Private Sub cbo_ListTypeFichier_Change()
'je voudrais que ca mette a jour le liste des fichers de la fileListBox
FLB_ListFichier.Pattern = cbo_ListTypeFichier.Text
End Sub
Private Sub cmdQuitter_Click()
'Ferme la fenêtre et quitte l'application
Unload Me
End
End Sub
Private Sub Dir_Repertoire_Change()
'Chemin sélectionné
FLB_ListFichier.Path = Dir_Repertoire.Path
'FLB_ListFichier.Pattern = cbo_ListTypeFichier.Text
strChemin = FLB_ListFichier.Path + "\"
End Sub
Private Sub Dir_Repertoire_DragOver(Source As Control, X As Single, Y As Single, State As Integer)
If State = 0 Then Source.MousePointer = 11
If State = 1 Then Source.MousePointer = 0
End Sub
Private Sub DLB_SourceDrive_Change()
'Recupere le disque
Dir_Repertoire = DLB_SourceDrive.Drive
End Sub
Private Sub FLB_ListFichier_DragOver(Source As Control, X As Single, Y As Single, State As Integer)
On Error GoTo Err_FLB_ListFichier_DragOver
Fiche$ = FLB_ListFichier.FileName
Exit_Err_FLB_ListFichier_DragOver:
Exit Sub
Err_FLB_ListFichier_DragOver:
MsgBox Err.Number & " - " & Err.Description
Resume Exit_Err_FLB_ListFichier_DragOver
End Sub
Private Sub FLB_ListFichier_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim DY
DY = TextHeight("A")
lbl_ListFichier.Move FLB_ListFichier.Left, FLB_ListFichier.Top + Y - DY / 2, FLB_ListFichier.Width, DY
lbl_ListFichier.Drag
End Sub
Private Sub Form_DragOver(Source As Control, X As Single, Y As Single, State As Integer)
If State = 0 Then Source.MousePointer = 11
If State = 1 Then Source.MousePointer = 0
End Sub
Private Sub Form_Load()
cbo_ListTypeFichier.ListIndex = 0
FLB_ListFichier.Pattern = cbo_ListTypeFichier.Text
End Sub |
Partager