Link to home
Start Free TrialLog in
Avatar of Joshyy
Joshyy

asked on

Common Dialog Question

Hi there,

I am using the common dialog ShowOpen in my program.  I am using it with the MultiSelect parameters (in which it changes its appearence a bit).  My question is if there is a way to add a check box to the dialog called Select All that is used for selecting all the files in the file list rather than having a user select the files with the mouse.

Thanks,

Joshyy
ASKER CERTIFIED SOLUTION
Avatar of Alon Hirsch
Alon Hirsch
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ryan Chong
Alon is true, the process of adding a checkbox in a standard common dialog box is possible, but personally think it's complicated.

<listening..>
Hi,
It is terribly complicated, involves subclassing and lots of API's.
The real question to ask is - is it really needed, or will it really improve the application to the extent that the extra complication in the development and maintenance of the project make it worth while ?

If not - let the user select all files manually!
I believe that most of the times the answer will be 'NOT WORTH IT!'

Alon
Avatar of riaz9
riaz9

Just a comment. The user can always select all files by pressing Ctrl + A rather than going through all this procedure.
You can also use combination of shift and ctrl key to select like regular explorer
<<Just a comment. The user can always select all files by pressing Ctrl + A rather than going through all this procedure. >>
AMEN, riaz9.  JoshW, Just tell them this...
try setting the commondialogbox.flags  property.

there are a lot of options in this.
i have a suggestion... instead of u using the windows default open dialog box(i haven't tried this) u can create one of urs... that makes ur application much effective and helps u to include all the options which ever u would like to include!!!
Hi Joshyy,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept AlonHirsch's comment(s) as an answer.

Joshyy, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange