>>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.