Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - CommonDialog Max Entires
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CommonDialog Max Entires

 Post Reply Post Reply
Author
Message
XiMaker View Drop Down
Groupie
Groupie
Avatar

Joined: 11 December 2009
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote XiMaker Quote  Post ReplyReply Direct Link To This Post Topic: CommonDialog Max Entires
    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?

Back to Top
XiMaker View Drop Down
Groupie
Groupie
Avatar

Joined: 11 December 2009
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote XiMaker Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 2011 at 10:38am
Anyone? 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2011 at 1:39am
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
Back to Top
JantjeKeizer View Drop Down
Groupie
Groupie


Joined: 12 February 2008
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote JantjeKeizer Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2011 at 3:24am

set the MaxFileSize property of the commondialog first.

the size is the buffer for all the strings combined.

so for example

cdlg.MaxFileSize = 6000

Back to Top
XiMaker View Drop Down
Groupie
Groupie
Avatar

Joined: 11 December 2009
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote XiMaker Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2011 at 5:14am
SO SIMPLE - thanks that did the trick...
 

cdlg.MaxFileSize = 6000

 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.164 seconds.