[1.0/1.1] Shortcut to Quicklaunch
Hi. I know how to create a notify icon and place it in the notify icon area, i.e. the lower right hand side of the taskbar. However, I've seen it done before but just that I don't know how to do it. How do you place a shortcut in the quicklaunch area, i.e. the lower left hand corner?
Jennifer.
Re: [1.0/1.1] Shortcut to Quicklaunch
You just need to create a shortcut to your program in the Quick Launch folder.
Under Windows XP at least, this folder is located at
C:\Documents and Settings\<USER>\Application Data\Microsoft\Internet Explorer\Quick Launch\
So a valid path might be
Code:
string folder = Path.Combine(
Environment.GetFolderPath(SpecialFolder.ApplicationData),
@"Microsoft\InternetExplorer\Quick Launch\");
Re: [1.0/1.1] Shortcut to Quicklaunch
A NotifyIcon is absolutely nothing whatsoever to do with shortcuts and the QuickLauch tool bar. A NotifyIcon is a component of a running application, while a shortcut in the QuickLaunch bar is a LNK file, exactly like a shortcut in the Start Menu or on the Desktop except that it resides in the folder that sunburnt mentioned rather than the StartMenu or Desktop folder. Creating a shortcut to your program's executable is not a trivial task in .NET as there is no purely managed way to achieve it. The link below explains how to do it in VB.NET. I'm sure the code could be converted to C# without much problem, perhaps using one of the converters in my signature.
http://www.knowdotnet.com/articles/c...ondesktop.html
Re: [1.0/1.1] Shortcut to Quicklaunch
OK I'll study the code. But is there anyway I could create that shortcut from the setup? I mean its just a shortcut to a directory right? Now i know how to create a shortcut to the desktop. Isnt there someway to create a shortcut to the quicklaunch folder directory from the setup?
1 Attachment(s)
Re: [1.0/1.1] Shortcut to Quicklaunch
Absolutely, but if that's what you want you should have said so in the first place. This is the C# forum, not the Deployment forum, so the assumption is that you want C# code. You select the File System editor in your Setup project, right click the "File System on Target Machine" root and select Add Special Folder -> User's Application Data Folder. That corresponds to the "C:\Documents and Settings\<USER>\Application Data" part of the path, so you then create subfolders for "Microsoft\Internet Explorer\QuickLaunch" and then create a shortcut to your executable. That will then be installed along with your application.