Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Network drive
Message
 
 
À
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:
00312673
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.

I am very glad to help. :)
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform