Doubleclick on the Button and add the following code to the event handler. ![]() / Sets the path and file name of a Shell link object / Attempts to find the target of a Shell link, even if it has been moved or renamed Void SetRelativePath( string pszPathRel, int dwReserved) / Sets the relative path to the Shell link object Void SetIconLocation( string pszIconPath, int iIcon) / Sets the location (path and index) of the icon for a Shell link object Void GetIconLocation( StringBuilder pszIconPath, ![]() / Retrieves the location (path and index) of the icon for a Shell link object The show command sets the initial show state of the window. ![]() / Sets the show command for a Shell link object. / Retrieves the show command for a Shell link object / Sets a hot key for a Shell link object / Retrieves the hot key for a Shell link object / Sets the command-line arguments for a Shell link object Void GetArguments( StringBuilder pszArgs, int cchMaxPath) / Retrieves the command-line arguments associated with a Shell link object Void SetWorkingDirectory( string pszDir) / Sets the name of the working directory for a Shell link object Void GetWorkingDirectory( StringBuilder pszDir, int cchMaxPath) / Retrieves the name of the working directory for a Shell link object The description can be any application-defined string / Sets the description for a Shell link object. Void GetDescription( StringBuilder pszName, int cchMaxName) / Retrieves the description string for a Shell link object / Sets the pointer to an item identifier list (PIDL) for a Shell link object. / Retrieves the list of item identifiers for a Shell link object Void GetPath( StringBuilder pszFile, int cchMaxPath, out IntPtr pfd, int fFlags) / Retrieves the path and file name of a Shell link object / The IShellLink interface allows Shell links to be created, modified, and resolved
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |