how can I invoke the dialog that Explorer displays whenever you right-click over a file and select "properties"?
I know I have seen the code somewhere, but can't remember where.
Printable View
how can I invoke the dialog that Explorer displays whenever you right-click over a file and select "properties"?
I know I have seen the code somewhere, but can't remember where.
Why don't you make it customize:
Right click -> invoke popup menu -> select properties and then display your own made form. Is it about files, messages or something else? If it is for messages (MAPI) for example, you can retrieve its Size, DateSent, Senter etc...
Michael Vlastos
Company MODUS SA
Development Department
Athens, Greece
Tel: +3-01-9414900
I've also seen it somewhere (can't for the life of me remember where either).
I know that Karl Peterson has a sample project called 'FileInfo' or something on his website which replicates the dialog (and allows you to access all the file information yourself).
Take a peek at http://www.mvps.org/vb
Chris Eastwood
CodeGuru - the website for developers
http://www.codeguru.com/vb
well, if you have seen the properties dialog in NT you know why I don't want to reimplement in myself.
It can display Version info, Security info and so on.
I know there is an API for doing it. That's what I am looking for.
not bad, that example, but I really really want to use the Explorer dialog.
program's like Windows Commander can do that, too.
I guess I have to implement a shell interface.
It's probably gonna cost me a few hours of surfing and many more grey hairs :-)
Use the ShellExecuteEX function with the verb
properties.
That will show the same properties box that
Explorer uses.
Yes, It works fine.
But how to do if had to see the property for more then one file? The member lpVerb of structure SHELLEXECUTEINFO do not accept a list of file.
Search for the following on the MSDN: SHELLEXECUTEINFO
Or go to the following page. it should help. I hope.
http:// msdn.microsoft.com / library / psdk / shellcc / shell / Structures / SHELLEXECUTEINFO.htm
Try this code:
http://www.freevbcode.com/ShowCode.Asp?ID=445
Have you seperated the filenames with #0 and
ended your list with #0#0?