| If your program has an Explorer shell-style interface, you probably want to supply the standard File/Properties dialog. Do this by using the ShellExecuteEX API function: 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 dwHotKey as Long hIcon as Long hProcess as Long End Type Private Declare Function ShellExecuteEX Lib _ "shell32" (lpSEIAs SHELLEXECUTEINFO) As Long Private Const SEE_MASK_INVOKELIST=&HC Private Sub ShowFileProperties(ByVal aFile as String,h as Long) Dim sei as SHELLEXECUTEINFO sei.hWnd=h sei.lpVerb="properties" sei.lpFile=aFile sei.fMask=SEE_MASK_INVOKEIDLIST sei.cbSize=len(sei) ShellExecuteEX sei End Sub Please note I typed this directly in here and not in the IDE so there may be typos. |
Show the Standard File Properties Dialog |
Express News India | Freelance ecommerce web development India