Avatar of Murray Brown
Murray Brown
Flag for United Kingdom of Great Britain and Northern Ireland asked on

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

Visual Basic.NET

Avatar of undefined
Last Comment
Murray Brown

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Fernando Soto

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Jacques Bourgeois (James Burger)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Murray Brown

ASKER
Thanks very much
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes