Common Dialog Control

How Do I change the button names on a dialog control?  I want to copy a file from 1 directory to another one.   It's only coping a file and I don't want it to say save because the user might be confused.  If there is any code or API routine that would be greatly helpfull.  Thanks

Jen
nrok829384Asked:
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.

polaughlinCommented:
I don't think that it is possible to do that without making your own "Common dialog" form (a form in your project that looks and works exactly like the common dialog, but says "Copy" instead of "Save") which can be a whole lot of work.  I'm not 100% sure, so I could be wrong.  If I am, someone please correct me and post it here so I can know how to do it also. :P
0
pin_plunderCommented:
that's totally true. the best thing you can do is to make your own dialog box.

may be you could use the FileListbox, drivelistbox, dirlistbox.

but i will look old-fashioned.
0
cvidlerCommented:
If you're game you could use some subclassing to look up the hWnd and hDC of the window, then find the hWnd and such of the Save button, then change it - it is possible - but is it really worth it.

PS. don't ask me - I've only heard of it being done, I've tried but can't do it myself
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

KDivadCommented:
I've seen enough code to know that it is possible and fairly easy, but unfortunately, I can't find it. The hardest part is establishing the hook that will notify your app when the dialog is created. Once you know that, it's almost child's play to find the button (FindWindow or a GetWindow loop) and change it's caption (SetWindowText).

Sorry I couldn't be more help!
0
cvidlerCommented:
Goto  www.vbaccelerator.com

they got a lot of stuff on common dialogs - it may be of help
0
cvidlerCommented:
Goto  www.vbaccelerator.com

they got a lot of stuff on common dialogs - it may be of help
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
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 Classic

From novice to tech pro — start learning today.