Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Network drive
Message
De
21/12/1999 02:08:11
Gordon Evans
Megabyte Computer Services Ltd
Sheffield, Royaume Uni
 
 
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Divers
Thread ID:
00226934
Message ID:
00306571
Vues:
36
>>I have simple form that uses the three drive/directory/file controls, it works fine for the current computer C:,D: and A:.
>>How do I get the drive control to see the network?
>>
>>Gordon. (VB Beginner)
>
>Gordon, You will need to add the "Microsoft Common Dialog Control" to your Project\components. Take that component and add it to the form leave the default name "CommonDialog1". Add a textbox to the form called txtReturn. Add a ccommand button named cmdDialog. Insert the following code and POOF you have full access.
>
>
>
>Private Sub cmdDialog_Click()
>    CommonDialog1.DialogTitle = "Select return to load" 'dlgReturnSelect
>    CommonDialog1.Filter = "All Files (*.*)|*.*"
>    CommonDialog1.FilterIndex = 0
>    ' The following sets the default start dir.
>    'CommonDialog1.InitDir = g_strMainName & g_strToPrintPath
>    CommonDialog1.Flags = cdlOFNExplorer
>    CommonDialog1.ShowOpen
>    ' Get the selection.
>    txtReturn.Text = CommonDialog1.filename
>End Sub
>
Just realised I didn't thank you for this.
It works a treat and is so simple.

Gordon.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform