2016-01-19 1 views
0

его можно получить список последних товаров в окнах, как на этом рисунке? как я могу получить доступ к этому из vb.net?.Net Получить недавний открытый элемент другого приложения (как в строке меню)

список последний элемент (щелкните правой кнопкой мыши на значок панели)

http://i.stack.imgur.com/hnPtQ.png

Благодаря

ответ

0

Что вы имеете в виду это список переходов. Вы можете получить доступ изнутри .NET, начиная с .NET 4. Так как вы хотите это в VB.Net проверить это article и official documentation на

MSDN
 
Imports System.Windows.Shell 
Class Application 

    Public Sub New() 

     Dim jl As New JumpList 
     JumpList.SetJumpList(Application.Current, jl) 

     Dim SaveAs As New JumpTask 
     SaveAs.ApplicationPath = System.Reflection.Assembly.GetExecutingAssembly.Location() 
     SaveAs.Title = "Save as..." 
     SaveAs.Arguments = "-saveas" 
     jl.JumpItems.Add(SaveAs) 

     Dim Configuration As New JumpTask 
     Configuration.ApplicationPath = System.Reflection.Assembly.GetExecutingAssembly.Location() 
     Configuration.Title = "Configuration" 
     Configuration.CustomCategory = "Settings" 
     Configuration.Arguments = "-config" 
     jl.JumpItems.Add(Configuration) 

     jl.Apply() 

    End Sub 

    Private Sub Application_Startup(ByVal sender As Object, ByVal e As System.Windows.StartupEventArgs) Handles Me.Startup 

     ' Handle "Save As" JumpList example 
     If e.Args.Contains("-saveas") Then 
      ' Fancy Code Funtime 
      ' -- Remember, this launches as a new instance - if you don't want that, this end kills it when your done -- 
      End 
     End If 

     ' Handle "Configuration" JumpList example 
     If e.Args.Contains("-config") Then 
      ' I launch a configuration window here, really up to you 
      ' -- Remember, this launches as a new instance - if you don't want that, this end kills it when your done -- 
      End 
     End If 

    End Sub 

End Class