Visual Basic - como manejar dir list box

Life is soft - evento anual de software empresarial
 
Vista:

como manejar dir list box

Publicado por cesar (1 intervención) el 07/05/2001 17:16:27
necesito saber como buscar en un dir list box manejar multiples archivos sobre todo archivos de access para agregar un formulario de ingreso o actualizacion de datos

Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:como manejar dir list box

Publicado por Miguel (243 intervenciones) el 07/05/2001 17:38:39
Hola.
A ver si esto te sirve.Necesitas un DriveListBox un DirListBox y un FileListBox.
El DriveListBox es drvList
El DirListBox es DirList
El FileListBox es File1

Private Sub drvList_Change()
On Error GoTo DriveHandler

dirList.Path = drvList.Drive
Exit Sub

DriveHandler:

MsgBox "Esta unidad no está disponibl.",vbCritical, "Error de dispositivo"
drvList.Drive = dirList.Path
Exit Sub
End Sub

Private Sub dirList_Change()
File1.Path = dirList.Path
End Sub

Con esto el File1 te va mostrando los archivos de las carpetas que abres en el DirListBox.Para que no te los muestre todos los archivos el FileListBox tiene la propiedad Pattern en *.* .Aquí le colocas la extensión que quieres que se vea.

Espero que te sirva
Saludos
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar