Click to See Complete Forum and Search --> : Browse button command


ooananoo
May 3rd, 2001, 02:04 PM
How to make a browse button command and loads the path to a textbox ? Please help.

Iouri
May 3rd, 2001, 02:13 PM
Use Common Dialog control

Private Sub cmdBrowse_Click()
dlg.ShowOpen
txtFile = dlg.FileName
End Sub



Iouri Boutchkine
iouri@hotsheet.com

cksiow
May 3rd, 2001, 09:26 PM
if u only need to get the directory instead of filename, then try http://vblib.virtualave.net, there is a function called BrowseForFolder in vbGeneralControl class.

HTH