473,583 Members | 3,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FileListBox ListCount is missing

I'm trying to use the FileListBox, but it does not seem to have the
ListCount property or any substitute. Any bids on this or another way (short
of the old DOS routine) to get a countable listing or array of files from a
folder?

Lennart
Nov 21 '05 #1
2 2115
"Lennart Nielsen" <ln******@uni-systems.com> schrieb:
I'm trying to use the FileListBox, but it does not seem to have the
ListCount property or any substitute. Any bids on this or another way
(short of the old DOS routine) to get a countable listing or array of
files from a folder?


\\\
Imports System.IO
..
..
..
.... = Directory.GetFi les("C:\bla").L ength
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
Thanks!
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:uk******** ******@TK2MSFTN GP09.phx.gbl...
"Lennart Nielsen" <ln******@uni-systems.com> schrieb:
I'm trying to use the FileListBox, but it does not seem to have the
ListCount property or any substitute. Any bids on this or another way
(short of the old DOS routine) to get a countable listing or array of
files from a folder?


\\\
Imports System.IO
.
.
.
... = Directory.GetFi les("C:\bla").L ength
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5547
by: martijn | last post by:
Probably not the first time this one is asked in this group... The standard filelistbox does what it says, it lists files. But as all windows based dialogs offer file details etc. I think it can't be impossible to get some extended filelistbox that does the job. However, can't find it anywhere. Anyone know a proper method? regards, ...
0
1702
by: Darryl Kerkeslager | last post by:
Access 2002 on Win98 at least, not tested elsewhere: Bug: The ListCount property of an unbound listbox may be incorrect if you use column heads. Model: Set up a simple database with two simple tables (I used employer and person). Create a bound form based on the employer table, with a txtName textbox, a txtID textbox, and an unbound...
1
8401
by: andrew.panin | last post by:
Hi there! I've got a trouble with these things. What's going on? 1ST STEP: we have ListBox item. Let's call it ListBox1. We're adding four values to it using AddItem method: ListBox1.AddItem('a') ListBox1.AddItem('b') ListBox1.AddItem('c') ListBox1.AddItem('d')
10
5190
by: kokirichild | last post by:
Hi All! I've been scouring the web to no avail, but what I'm looking for is something similar to the FileListBox that was there in VB6 but seems to have been removed (or moved) in 2005. Does anyone know of a way to display a list of files in a given directory, and allow the user to select one? Any help would be great!
0
1986
by: akoymakoy | last post by:
how do i link my dirlistbox to the filelistbox viceversa... I would like to use the path of the file selected in the filelistbox as a variable that i would use as a location for the DB that i will be using in my SELECT statement this is what i would like to know: Loc_variable = (the path of the file.db selected on the file listbox) ...
9
4447
by: =?Utf-8?B?U2NhbmJveQ==?= | last post by:
Guyz, I have just learnt how to add the 'DriveListBox', 'DirListBox' and 'FileListBox' controls that were always included in the toolbox with VB 3.0 / 4.0 / 5.0, but always missing in VBE 2005. And I have managed to create a simple file browsing project with the 'DriveListBox', 'DirListBox' and 'FileListBox' controls with the following...
5
3493
by: eleksoft | last post by:
My code: If List.Listcount > 0 then For intI = 0 to List.Listcount - 1 'code Next intI End If For some reason, and not all the time, this loop only runs to the second last entry. I have even witnessed it in break mode and following it step by step with Shift + F8, where it reports - for example - that the listcount...
0
1306
by: Cancionero | last post by:
All, This is a simple problem that I, for some reason, am having a hard time with. Basically I am trying to rename all the files listed in a FileListBox based on a search and replace string. I am able to accomplish this task by referencing all files in a folder using the filesystemobject but, as you can see in the code below, this attempts to...
0
1012
by: gobblegob | last post by:
hi guys, I am updating a FileListBox with this... Private Sub tmr_Timer() File1.Refresh If File1.ListCount > nCount Then MsgBox "File has been added" nCount = File1.ListCount But in the messagebox i want to display the file that has been added.
0
8321
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6578
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5699
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5370
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3816
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3841
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1426
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1154
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.