Results 1 to 3 of 3

Thread: File Properties

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    35

    Post

    When a Word document's (*.doc) icon is right clicked upon (in Windows Explorer for example) multiple tabs apear (not just the general tab). How is this done?

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    To show a Files, File Properties Dialog, use this:
    Code:
    Private Type SHELLEXECUTEINFO
            cbSize As Long
            fMask As Long
            hwnd As Long
            lpVerb As String
            lpFile As String
            lpParameters As String
            lpDirectory As String
            nShow As Long
            hInstApp As Long
            lpIDList As Long
            lpClass As String
            hkeyClass As Long
            dwHotKey As Long
            hIcon As Long
            hProcess As Long
    End Type
    
    Private Declare Function ShellExecuteEx Lib "shell32.dll" (lpExecInfo As Any) As Long
    
    Private Const SEE_MASK_INVOKEIDLIST = &HC
    
    Private Sub Command1_Click()
        Dim tSHELL As SHELLEXECUTEINFO
        With tSHELL
            .lpFile = "C:\TheFile.txt"
            .lpVerb = "properties"
            .fMask = SEE_MASK_INVOKEIDLIST
            .cbSize = Len(tSHELL)
        End With
        Call ShellExecuteEx(tSHELL)
    End Sub
    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2000
    Posts
    35

    Post

    Obtaining the properties of a file is not a probelm. What I would like to know is: How to manipulate a file so that an additional tab is placed on the property dialog of said file. (i.e. like a ms word doc.)

    [This message has been edited by Option Explicit (edited 02-02-2000).]

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