Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Directory Box - Single click ? 1

Status
Not open for further replies.

ZOR

Technical User
Jan 30, 2002
2,963
GB
Is it possible to single mouseclick a directory box. I am establishing a file path with Drive/Directory boxes. Its too easy to to not select a correct directory, as having to double click. I have tried both change and click properties, but its the same. Any ideas, thanks
 
Zor,

Can you explain with a little more detail please.

Thanks.

"Life is full of learning, and then there is wisdom"
 
Thanks. When clicking on a Directory Listbox (Dir1) you have to double click on the folder icons before they open and register an output path. Cannot explain it any more than that really, its probably the design/how it works. Thanks again.
 
Hi,

I just ran one of my apps that has a DirListBox and a FileListBox, and has the following code:

Private Sub DirList_Click()
DirList.Path = DirList.List(DirList.ListIndex)
FileList.Path = DirList.Path

End Sub

This displays the sub-folders (if there are any) and populates the FileListBox, both with only a single click.

Cheers.

"Life is full of learning, and then there is wisdom"
 
Many thanks Koala15, your bit worked. Have a star to start your week off.
 
Glad to be of assistance. Enjoy.

"Life is full of learning, and then there is wisdom"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top