1

how to Create Windows 7 Quick Launch Icon With C# ?

eglease
  • 2,445
  • 11
  • 18
  • 28
pedram
  • 3,647
  • 6
  • 24
  • 28
  • 2
    Please post more details, perhaps code samples and where you are having difficulties? StackOverflow is not a "give me the code" kind of site. – Oded Sep 01 '10 at 14:55
  • 1
    Do you mean "how to create a taskbar icon"? – M4N Sep 01 '10 at 14:55
  • 3
    Quick Lunch Icon? Like a sandwich running really fast? ;) – Iain Ward Sep 01 '10 at 14:58
  • Are you asking how to create an icon as a file, or as a resource for an application, or how to add a shortcut to the quick launch folder, etc.? The question is vague. – David Sep 01 '10 at 14:58
  • 1
    @everyone, I think the question is perfectly clear... a "quick launch icon" is a shortcut in the taskbar's "quick launch" area (next to the Start menu). It used to be a folder in the user's profile, but in Windows 7 it has changed (btw, in most current installers, the feature that tries to create such an icon actually doesn't work in Win7) – Thomas Levesque Sep 01 '10 at 15:08
  • 1
    Are you sure he's not talking about a JumpList item? – Steve Danner Sep 01 '10 at 15:25
  • @ Thomas Levesqu : I think only you are understood my question ! – pedram Sep 01 '10 at 18:15
  • @Pedram: The quick launch toolbar was removed in Windows 7. So it's kinda hard to understand your question. – Larry Osterman Sep 02 '10 at 13:31

1 Answers1

2

Create a .lnk file in the c:\users\mumble\appdata\roaming\microsoft\internet explorer\quick launch folder. Beware that the Quick Launch toolbar is disabled by default in Win7, I don't remember what I did to re-enable it.

Creating the .lnk file takes secret sauce as well. You can find sample code in my answer in this thread.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536