VB.net Select Multiple Files without holding Ctrl button

Hi

I am usingthe following VB.net code to allow the user to select multiple files while holding the Ctrl button.
Is there a way for the user to not hold the Ctrl button and still select multiple files?



     Me.OpenFileDialog1.Multiselect = True

            Dim dr As DialogResult = Me.OpenFileDialog1.ShowDialog()
            If (dr = System.Windows.Forms.DialogResult.OK) Then
                ' Read the files 
                Dim file As String
                For Each file In OpenFileDialog1.FileNames

                    Try
                        'MsgBox(file)
                        oFullWordToLookForInMaster = Get_Word_to_Match_Abbreviation(file)
                        Me.DataGridView1.Rows.Add("", "", file, oActiveSheetName, oFullWordToLookForInMaster, "", "")

                    Catch ex As Exception
                        MsgBox(ex.Message)
                    End Try
                Next file
            End If

Open in new window

Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Fernando SotoRetiredCommented:
I think you will find that is a function of the OpenFileDialog box that it uses from the operating system just like Windows Explorer or Solution Explorer is VS and the OpenFileDialog has no options to change that.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jacques Bourgeois (James Burger)PresidentCommented:
As Fernando says, this window comes from the operating system. Not only changing it would not be possible, but it would probably be useless because the users know that window from multiple program, and will not have the reflex of clicking without holding Ctrl for a multiple selection.

If you really have a similar window that does enable Ctrl-Click for multiple selections, you will have to create it from scratch.
0
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.