Results 1 to 5 of 5

Thread: [1.0/1.1] Shortcut to Quicklaunch

  1. #1

    Thread Starter
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    [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.

  2. #2
    PowerPoster sunburnt's Avatar
    Join Date
    Feb 2001
    Location
    Boulder, Colorado
    Posts
    1,403

    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\");
    Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    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?

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Attached Images Attached Images  
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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