Jan,
There is no way to get a direct reference to the add attachment dialog box to then control its behavior. Going through the CommandBars as Sue suggests is the only way that I know of. For the most part, the IDs should be stable. This is also true for localized versions of the software. That said, I cannot confirm that all of them are constant.
I would feel at ease using them in a sample, though.
That said, another technique you can try is to provide your own custom form for selecting the attachment. It's very easy to do (and I know you know how to do that stuff in your sleep, Jan ). Using a simple winform, a filebrowser dialog, a text box, dropdown box, and two buttons, and you have most of the functionality right there.
I'll consider this answered, but you can re-post if you feel there is something I've overlooked.
John.
http://blogs.msdn.com/johnrdurant |