473,396 Members | 2,089 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Adding file names in a combo

Ali Rizwan
925 512MB
Hi all,
I want to add all file names in a combo from a specific folder.
Thanx
Oct 19 '07 #1
4 1090
debasisdas
8,127 Expert 4TB
read all the file names in a loop and add to combobox
or
try to use FileListBox for the purpose.
Oct 19 '07 #2
Ali Rizwan
925 512MB
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
Oct 19 '07 #3
debasisdas
8,127 Expert 4TB
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

Expand|Select|Wrap|Line Numbers
  1. Dim d As Integer
  2. d = File1.ListCount
  3. MsgBox d
  4. For i = 0 To d - 1
  5. Combo1.AddItem File1.List(i)
  6. Next i
  7.  
and make the filelistbbox hidden.
Oct 19 '07 #4
QVeen72
1,445 Expert 1GB
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
Oct 19 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Erik Thorsen | last post by:
I need help with a tricky questions which I belive have a simple solution? For those who know Nwind.mdb, the example database that comes with microsoft access, it has several different tables. One...
6
by: 6thirty | last post by:
Hi, I've created a stocktaking database using Access XP. This is indexed by two fields - part number and shelf location. I am currently inputting all the data via a form. When I have entered a...
6
by: vb | last post by:
Hi, I am new to .Net. I am using a Combo Box in my windows forms. I am adding the items by creating the instances and adding the same to the list. My questions/doubts are: 1. If I have 25 to...
1
by: Shawn Yates | last post by:
It has been a while since I have done anything on MS Access and I seem to be a bit rusty. I hope someone could help me solve my issue. I have a form that has multiple combo boxes on it. Each box...
1
by: christianlott1 | last post by:
I want to provide users with an interface to create a custom merge (all in Access, not Word). User will put in a set of brackets ("<>") in a memo field and when they click the merge button it will...
2
by: banderson | last post by:
Hello, I have a data entry form for a table with information about buildings and am having a problem making a combo box do what I want. I would like to make the combo box show a list of unique bldg...
6
by: Ken Foskey | last post by:
I am brand new to coding C# and Visual Studio. I have worked out how to configure the ComboBox creating my own object however it leave me with a lot of management updating as the table changes....
3
by: dario90 | last post by:
In form 'Orders' i've a combo field connected with names of products. How can i do a option for adding new products from this form- not in 'Products' form?
24
by: AccessBeetle | last post by:
I am using this "append2table" function from Allen Browne to add an item to the combobox that is not already in the list. Here is the function, with my fields and table names Function...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.