1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Development C# JumpList issues (n00b)

Discussion in 'Software' started by NikoBellic, 16 Nov 2010.

  1. NikoBellic

    NikoBellic Tech Addict

    Joined:
    9 May 2009
    Posts:
    96
    Likes Received:
    1
    I've tried following a few different guides online to add a jumplist to my app but I continually find the following error displays:

    Code:
    'System.Windows.Forms.Application' does not contain a definition for 'Current'

    heres the lines I'm using at the mo:

    Code:
    private void Form1_Load(object sender, EventArgs e)
            {
                JumpList jumpList = new JumpList();
                JumpList.SetJumpList(Application.Current, jumpList);
    
                JumpTask jumpTask = new JumpTask();
                jumpTask.Title = "IE";
                jumpTask.CustomCategory = "Keep Notes";
                jumpTask.ApplicationPath = @"C:\Program Files\Internet Explorer\iexplore.exe";
                String systemFolder = Environment.GetFolderPath(Environment.SpecialFolder.System);
                jumpTask.IconResourcePath = @"C:\Program Files\Internet Explorer\iexplore.exe";
                jumpTask.IconResourceIndex = 0;
                jumpTask.Arguments = "pixel shaders";
                jumpList.JumpItems.Add(jumpTask);
                jumpList.Apply();
            }
    I'm hoping that someone can tell me where I'm going wrong...

    all I want is a standard jumplist which enables me to launch any particular app that I develop the app to launch.



    Thanx in advanced :)


    ***UPDATE***

    it turns out that it was affected by my OS not having 'Recent Items' Enabled... anyway yeah, I've got JumpLists working now! :)

    *EDIT=2*

    Could anyone tell me how to add a second item to the jumplist?
     
    Last edited: 16 Nov 2010

Share This Page