Results 1 to 3 of 3

Thread: icons on the desktop

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    113

    Arrow

    How can I put icons on the desktop?

  2. #2
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    Code:
    Option Explicit
    
    'NOTE:
    'In Visual Basic 5.0 & 6.0 = Vb5stkit.dll
    'In Visual Basic 4.0       = Stkit432.dll
    
    Private Declare Function fCreateShellLink Lib "Vb5STKIT.dll" (ByVal lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long
    
    Private Sub cmdRegular_Shortcut_Click()
      'PURPOSE: Add to Startup Group
      'Note that on Windows NT, the shortcut will not actually
      'appear in the Startup group until your next reboot.
      Call fCreateShellLink("\Startup", "Shortcut to Calculator", "c:\windows\calc.exe", "")
      MsgBox "Shortcut of calculator has resided in \Startup"
      
      'PURPOSE: Add to Desktop
      'Call fCreateShellLink("..\..\Desktop", "Shortcut to Calculator", "c:\windows\calc.exe", "")
      
      'PURPOSE: Add to Program Menu Group
      'Call fCreateShellLink("", "Shortcut to Calculator", "c:\windows\calc.exe", "")
    End Sub
    Chemically Formulated As:
    Dr. Nitro

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    113
    thanx

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