Windows Common Dialog Box Control

G

Guest

Hello,

When using the Windows Common Dialog Box Control, is their any way to change
the Caption of the Save/Open button to read "Attach" ?

Any help would be greatly apprecaited.

Thank you,
Jeff
 
D

Dirk Goldgar

Jeff said:
Hello,

When using the Windows Common Dialog Box Control, is their any way to
change the Caption of the Save/Open button to read "Attach" ?

Any help would be greatly apprecaited.

I'm afraid I'm not posting a direct answer to your question, but you did
say "any help". May I suggest that you not use the Common Dialog
Control? The control is cumbersome to use, and is subject to problems
with broken references (since lots of different applications install
different versions of the control) and to distribution/licensing issues.

Most of the developers I know recommend just calling the Windows File
Open/Save API directly, using code such as that posted here on the
Access Web:

www.mvps.org/access/api/api0001.htm

That code is not subject to licensing or versioning problems, and you
can customize it any way you like (within the constraints of the Windows
API). I think, though, that to change the caption on the actual buttons
of the dialog, you may have to hook that window procedure. I think I've
seen code for this posted somewhere; maybe on VBNet (
http://vbnet.mvps.org/ ). Code there would be VB-oriented, not
Access-oriented, but it's not hard to adapt it so long as you realize
that VB forms and Access forms are different. And besides, what you're
asking about doesn't really involve forms.
 
G

Guest

Hi Dirk,

Thank you very much as u were very helpful.

In case you were wondering there is code on that website u gave me
(http://vbnet.mvps.org/ ) to change the captions of the buttons.

I have it working :)

Thanks again,
Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top