473,785 Members | 2,612 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OpenFileDialog: selecting more than 200 files

In .NET v1.1 I am trying to select multiple files using OpenFileDialog like
this

OpenFileDialog openFileDialog= new OpenFileDialog( );
openFileDialog. Multiselect=tru e;
i f(openFileDialo g.ShowDialog() == DialogResult.OK ) {
...
}

Now I discover that there is a hardcoded limit of 200 files.
But I must select way more than 200 files, so how can I go around this
limit?

Also has VS 2005 still this limit?

Thanks
Nov 17 '05 #1
1 4436
Olaf,

This is a function of the OS, not of .NET. The file dialog you see is a
shell for the one provided by the OS.

However, if you have a need to select 200 files at once, I think you
need to re-evaluate your user interface. You should have the user provide a
pattern, or some other filter criteria, at which point you would find the
files that fit that criteria.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Olaf Baeyens" <ol**********@s kyscan.be> wrote in message
news:43******** **************@ news.skynet.be. ..
In .NET v1.1 I am trying to select multiple files using OpenFileDialog
like
this

OpenFileDialog openFileDialog= new OpenFileDialog( );
openFileDialog. Multiselect=tru e;
i f(openFileDialo g.ShowDialog() == DialogResult.OK ) {
...
}

Now I discover that there is a hardcoded limit of 200 files.
But I must select way more than 200 files, so how can I go around this
limit?

Also has VS 2005 still this limit?

Thanks

Nov 17 '05 #2

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

Similar topics

4
1441
by: Rajendra KASHI | last post by:
Hi, I am currently supporting one of the .Net application build with C# language. The application uses lots of delegates, in using the delegates the ShowDialog of the OpenDialogControl hangs the Application when users click on MyDocument button. If any body came across this issue or related, please reply the hits or solution to this Thanking you Regards Raj
1
5785
by: Paras Wadehra | last post by:
Hi Friends, Can anyone please help me with the OpenFileDialog Control in VB.Net? I want the user to be restricted to a particular folder only for selecting a file, i.e. they should not be able to change the directory in the OpenFileDialog! Is there a way to implement this? Please let me know. Thanks, Paras Wadehra
3
1679
by: Josema | last post by:
Hi to all... When i open a file dialog and the user has selected a file, the open file dialog remains like thinking a lot cause a file is too large... How can i force to close the file dialog? Thanks Josema.
3
360
by: bobrad | last post by:
MAYBE SOMEBODY CAM HELP I AM USING THE FOLLOWING CODE TO GET A LOCATION OF A FILE IN A WINFORM DIALOG OpenFileDialog openFileDialog = new OpenFileDialog(); OpenFileDialog.Filter = " Access (*.mdb)|*.mdb|All files (*.*)|*.*"; if (openFileDialog.ShowDialog() == DialogResult.OK) DataBaseLocation.Text = openFileDialog.FileName;
4
8009
by: Nagachandra Sekhar Grandhi | last post by:
I am facing a problem with OpenFileDialog. It is as follows. I opened OpenFileDialog dialog box and selected a folder in it. After selecting the folder when i tried to delete the same folder in Explorer i am getting error saying that cannot delete that folder as some process is using it. After that i selected a file from the same folder in OpenFileDialog. When i tried to delete the folder after selecting the file also it is giving the...
4
8674
by: Sharon | last post by:
I’m using OpenFileDialog class in a specific InitialDirectory and I want that files will be selected in the opened dialog when I call ShowDialog(). Actually I wish to select all files in the directory automatically by code. Is it doable? How?? -- Regards Sharon G.
4
731
by: Chuck Edgeworth | last post by:
I'm trying to be able to select a combination of files and folders. When I try to use the OpenFileDialog it will allow me to select them but when I press the Open button it only informs me of the files I chose not the folders as well? Am I missing something? I know Microsoft can determine the folders that are selected because if you do this with the Explorer file open it will bring up windows with the contents of the folders you selected...
2
1395
by: Bernie Yaeger | last post by:
I've asked this question before but now I need something different: I need to select files using openfiledialog, which is easy enough. But I want to select a file or files (multiselect) and also single click select a folder or folders (double click would open the folder, as the openfiledialog now does). I don't want to just browse the folder. For example, when I cut a cd using Record Now, it can select both files and entire folders and...
8
6098
by: marcus.kwok | last post by:
I am having a weird problem and I have can't figure out why it is happening. I create an OpenFileDialog and set a filename filter. When the dialog first opens, the filter works correctly, and only the files I want to see appear in the file list box. When I change the filter to one of the other filters, all the files in the list disappear. If I then manually type a filter into the "Filename" textbox, then the files appear and the filter...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10095
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9953
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8978
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7502
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6741
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5383
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2881
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.