CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10
  1. #1
    Join Date
    May 1999
    Posts
    3,332

    how to invoke File Properties Dialog like Explorer

    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.


  2. #2
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    Re: how to invoke File Properties Dialog like Explorer

    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

  3. #3
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: how to invoke File Properties Dialog like Explorer

    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

  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: how to invoke File Properties Dialog like Explorer

    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.


  5. #5
    Join Date
    May 1999
    Posts
    3,332

    Re: how to invoke File Properties Dialog like Explorer

    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 :-)


  6. #6
    Join Date
    Apr 1999
    Posts
    54

    Re: how to invoke File Properties Dialog like Explorer

    Use the ShellExecuteEX function with the verb
    properties.
    That will show the same properties box that
    Explorer uses.



  7. #7
    Join Date
    Jan 2000
    Posts
    1

    Re: how to invoke File Properties Dialog like Explorer

    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.


  8. #8

    Re: how to invoke File Properties Dialog like Explorer

    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



  9. #9

    Re: how to invoke File Properties Dialog like Explorer


  10. #10
    Join Date
    Oct 2000
    Posts
    21

    Re: how to invoke File Properties Dialog like Explorer

    Have you seperated the filenames with #0 and
    ended your list with #0#0?




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured