Hi all, How can I select a directory from computer by browsing a button in VB. I mean my problem is I want to put a button on from can select a directory , thx for try advance, Shai
Select a directory
Collapse
X
-
Originally posted by shaifulHi all, How can I select a directory from computer by browsing a button in VB. I mean my problem is I want to put a button on from can select a directory , thx for try advance, Shai
and add this code to a commandbutton
Code:commondialog1.showopen
Code:Private Sub Drive1_Change() Dir1.Path = Drive1.Drive End Sub Private Sub Dir1_Change() File1.Path = Dir1.Path End Sub Private Sub File1_Click() Text1.Text = File1.FileName End Sub
GOODLUCK
ALI
Comment