ComponentOne Windows 7 Control Pack for WinForms
AddShortcutToStartMenu Method



C1.Win.C1Win7Pack.4 Assembly > C1.Win.C1Win7Pack Namespace > C1TaskbarButton Class : AddShortcutToStartMenu Method
The application name as it appears on the Start Menu.
The description (comment) for a shortcut.
The path and file name for the target of a shortcut.
The command-line arguments for a shortcut.
The name of the working directory for a shortcut.
The path of the file containing the shortcut icon.
The index of the icon.
Creates a shortcut on the user's Start Menu.
Syntax
Public Sub AddShortcutToStartMenu( _
   Optional ByVal appName As String, _
   Optional ByVal description As String, _
   Optional ByVal executablePath As String, _
   Optional ByVal arguments As String, _
   Optional ByVal startupPath As String, _
   Optional ByVal iconPath As String, _
   Optional ByVal iconIndex As Integer _
) 
Dim instance As C1TaskbarButton
Dim appName As String
Dim description As String
Dim executablePath As String
Dim arguments As String
Dim startupPath As String
Dim iconPath As String
Dim iconIndex As Integer
 
instance.AddShortcutToStartMenu(appName, description, executablePath, arguments, startupPath, iconPath, iconIndex)
public void AddShortcutToStartMenu( 
   string appName,
   string description,
   string executablePath,
   string arguments,
   string startupPath,
   string iconPath,
   int iconIndex
)
public:
void AddShortcutToStartMenu( 
   String^ appName,
   String^ description,
   String^ executablePath,
   String^ arguments,
   String^ startupPath,
   String^ iconPath,
   int iconIndex
) 

Parameters

appName
The application name as it appears on the Start Menu.
description
The description (comment) for a shortcut.
executablePath
The path and file name for the target of a shortcut.
arguments
The command-line arguments for a shortcut.
startupPath
The name of the working directory for a shortcut.
iconPath
The path of the file containing the shortcut icon.
iconIndex
The index of the icon.
See Also

Reference

C1TaskbarButton Class
C1TaskbarButton Members