Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Network drive
Message
From
21/12/1999 02:08:11
Gordon Evans
Megabyte Computer Services Ltd
Sheffield, United Kingdom
 
 
General information
Forum:
Visual Basic
Category:
Other
Title:
Miscellaneous
Thread ID:
00226934
Message ID:
00306571
Views:
37
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform