Monday, September 17, 2007

How to show screen saver in VB.NET

Found this on Codeproject.com.
Very easy and very good indeed.

Dim regkey As Microsoft.Win32.RegistryKey
regkey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Control Panel\Desktop")
Dim Prs As New Process
Prs.StartInfo.FileName = regkey.GetValue("SCRNSAVE.EXE").ToString
Prs.Start()


Enjoy IT!