"OpenFileDialog" Solution to limitation???

GKG

Member
Joined
Aug 11, 2005
Messages
18
Programming Experience
1-3
"OpenFileDialog" Solution to limitation??? - Resolved

Hi all,

I am developing a windows application (VB.Net) which uses a "OpenFileDialog".
The openfiledialog has a limitaion on the number of files it can allow- which i found to be 549 files.I need to allow more than 600 files at one time in the openfiledialog.
Is there any way to increase the number of files to be allowed in "openfileDialog" / or an alternative to openfiledialog control with similar features but include more than 600 files at a time.

Please help !!!!

GKG
 
Last edited:
quick question. why do you need more than 600 files to be selected at one time?

another quick question: are all these files all in the same folder (as in could the directory dialog be used to select the directory and then you're program just do what it needs to do file by file or something) ?
 
Hi,
I tried using the directory dialog as u mentioned...but 1 question -

How do i read each file and its contents inside the directory ???
Any ideazzzz ??


Gkg
 
actually i dont know where the post was about that, but if i remember correctly jmcilhinney was the one who wrote it, you can send him a pm (his name is a link so you can get to his profile easily) and perhaps he can send you the function he wrote for it
 
Hey! My ears were burning so I knew someone was talking about me. :) If you know that you want to get every file in folder you would use something like this:
VB.NET:
		Dim fbd As New FolderBrowserDialog
		Dim fileNames As String()

		If fbd.ShowDialog() = DialogResult.OK Then
			fileNames = IO.Directory.GetFiles(fbd.SelectedPath)
		End If

		For Each fileName As String In fileNames
			'Use fully qualified path here.
		Next
 
Complete

Hi,
This problem has been complete..and i used the code which u have specified.
It works Great !!!!!


Thankx a ton
 
Complete

Hi,

This prob is complete and i used the code u mentioned.
It wrks GREAT !!!!

Thankx a ton

Cheers,
GKG.
 
Back
Top