Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Visual Basic only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Visual Basic
Adding file names in a combo
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Ali Rizwan
Banned
Contributor
Join Date:
Aug 2007
Posts:
931
#1
Adding file names in a combo
Oct 19 '07, 11:25 AM
Hi all,
I want to add all file names in a combo from a specific folder.
Thanx
debasisdas
Recognized Expert
Expert
Join Date:
Dec 2006
Posts:
8119
#2
Oct 19 '07, 11:31 AM
read all the file names in a loop and add to combobox
or
try to use
FileListBox
for the purpose.
Comment
Post
Cancel
Ali Rizwan
Banned
Contributor
Join Date:
Aug 2007
Posts:
931
#3
Oct 19 '07, 12:16 PM
Originally posted by
debasisdas
read all the file names in a loop and add to combobox
or
try to use
FileListBox
for the purpose.
Thanx Debasis
I know about filelistbox and i have used it many times but i want to use combo so that only one option will show at a time
Thanx
Comment
Post
Cancel
debasisdas
Recognized Expert
Expert
Join Date:
Dec 2006
Posts:
8119
#4
Oct 19 '07, 12:49 PM
Originally posted by
Ali Rizwan
Thanx Debasis
I know about filelistbox and i have used it many times but i want to use combo so that only one option will show at a time
Thanx
then simply try this sample code
[code=vb]
Dim d As Integer
d = File1.ListCount
MsgBox d
For i = 0 To d - 1
Combo1.AddItem File1.List(i)
Next i
[/code]
and make the filelistbbox hidden.
Comment
Post
Cancel
QVeen72
Recognized Expert
Top Contributor
Join Date:
Oct 2006
Posts:
1445
#5
Oct 19 '07, 12:54 PM
Originally posted by
Ali Rizwan
but i want to use combo so that only one option will show at a time
Hi,
Decrease the Height of File List Box, so that only one List Item is Visible at any given time... :)
Regards
Veena
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment