CommonDialog Max Entires |
Post Reply |
Author | |
XiMaker
Groupie Joined: 11 December 2009 Location: United States Status: Offline Points: 23 |
Post Options
Thanks(0)
Posted: 11 May 2011 at 6:45pm |
I'm having an issue with using the CommonDialog control when using the cdlOFNAllowMultiselect flag. when I hit the CommonDialog1.ShowOpen It will let me select as many files as I want but if I select more than 6 or 7 long filenames I get a single character of junk in the FileName property. If I select less that 5 it will return the files correctly and the GetNextFileName works correctly too. What can I do to enlarge the number of allowable files for Multiselect that will be returned? |
|
XiMaker
Groupie Joined: 11 December 2009 Location: United States Status: Offline Points: 23 |
Post Options
Thanks(0)
|
Anyone?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
What code you have ?
I tried such code with our SuiteControl sample and it show all files correctly: Dim f As String f = CommonDialog.FileName While (f <> "") Debug.Print f f = CommonDialog.GetNextFileName Wend |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
JantjeKeizer
Groupie Joined: 12 February 2008 Status: Offline Points: 70 |
Post Options
Thanks(0)
|
set the MaxFileSize property of the commondialog first. the size is the buffer for all the strings combined. so for example cdlg.MaxFileSize = 6000 |
|
XiMaker
Groupie Joined: 11 December 2009 Location: United States Status: Offline Points: 23 |
Post Options
Thanks(0)
|
SO SIMPLE - thanks that did the trick...
cdlg.MaxFileSize = 6000 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |