Another "Is it possible" question!!!


Well-known member
Mar 11, 2005
Midlands, UK
Programming Experience

Within my app I have a field for the user to enter the path of a network drive where any reference documentation may be, i.e s:\My Folder\Word.doc

My users have an inability to "spell correctly" (in my case anyway), is it possible to have an explorer type button next to the field which the user can browse through, find the file, click OK and then the path to that file is copied to the field?

I then need to have the field as a hyperlink so the user can click on it to open the documentation.....

Cheers guys'n'gals
i would suggest using an OpenFileDialog control for the finding of the *.doc file(s) the OpenFileDialog control is located right in the toolbox towards the bottom (there's several in the same spot, a PrintFileDialog, SaveFileDialog, ColorDialog, etc..)
Didn't realise how easy this was!!!!!

FYI, created a btnBrowse button and used the following code;

Private Sub btnBrowse_Click(ByVal sender As System.Object, ByVal e As _ System.EventArgs) Handles btnBrowse.Click

Dim x As New OpenFileDialog

If x.ShowDialog = DialogResult.OK Then

txtDocument.Text = x.FileName

End If

End Sub

....Now all I need to do is figure out how to make that textbox as a hyperlink to the document displayed...
hehe even managed to blag the hyperlink!

i replaced my textbox with a link label, and added a border so it looked like the rest of the textboxes.
I then set the code to txtDocument_Click as:

dim strDoc as string
strDoc = txtDocument.text

Job done!! Who said I had no innovation?!?!

Thanks for your help JuggaloBrotha for pointing me in right direction!

Latest posts