ToggleDesktop in VB.NET on XP

  • Thread starter Thread starter dencdr
  • Start date Start date
I would like to use this function on XP : IShellDispatch4.ToggleDesktop()

Option Strict Off
Imports System

Class ToggleDesktop
Shared Sub Main()
Dim clsidShell As New Guid("13709620-C279-11CE-A49E-444553540000")
Dim shell As Object = Activator.CreateInstance( _
Type.GetTypeFromCLSID( clsidShell ) )
shell.ToggleDesktop()
End Sub
End Class



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top