选择多个图像而不使用Ctrl [英] Select Multiple Images without using Ctrl

查看:62
本文介绍了选择多个图像而不使用Ctrl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在openFileDialog中选择多个图像而不使用Ctrl或shift或选择全部或复选框。我已经使用了Multiselect属性,但在其中,我必须使用上面提到的东西。

我的问题是假设用户输入winForms中存在的文本框中的任何数字,例如10,那么他应该能够只需单击一下即可在openfiledialog中选择10个文件。

先谢谢。

I want to select multiple images in openFileDialog without using Ctrl or shift or select all or checkboxes. I have used Multiselect property but in it, I have to use things I have mentioned above.
My problem is that suppose user enters any number in textbox present in winForms, example 10, then He should be able to select 10 files in openfiledialog by simply clicking on it one by one.
Thanks in Advance.

推荐答案

看一下这个问题(和回答)stackoverflow,我认为就是这样: OpenFileDialog:选择多个使用复选框的文件 [ ^ ]



您需要构建自己的OpenFileDialog来实现此目的。创建一个类并从FileDialog继承,因为OpenFileDialog是一个密封的类,不能继承或扩展。



在.NET中自定义OpenFileDialog (OpenFileDialogEx)项目可以为您提供实现一个很好的解决方案的信息。看看。
Take a look at this question (and answer) on stackoverflow, I think that's it: OpenFileDialog: Select Multiple Files Using a Check Box[^]

You need to build your own OpenFileDialog to achieve this. Create a Class and inherit from FileDialog, because OpenFileDialog is a sealed Class and can not be inherited or extended.

The Customizing OpenFileDialog in .NET (OpenFileDialogEx) Project could give you information to implement a nice Solution. Take a look.


这篇关于选择多个图像而不使用Ctrl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆