|
-
December 17th, 1999, 03:26 PM
#1
Filling Combox with a list of files.
How can I fill a combox with a list of files (say text files)from a directory.
Thanks in advance.
-
December 17th, 1999, 03:45 PM
#2
Re: Filling Combox with a list of files.
private Sub Command1_Click()
Dim sDir as string
sDir = Dir("C:\Windows\*")
While len(sDir)
Combo1.AddItem sDir
sDir = Dir
Wend
If Combo1.ListCount then Combo1.ListIndex = 0
End Sub
Aaron Young
Analyst Programmer
[email protected]
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|