First of all add these namespaces :
using Microsoft.Win32; using System.Collections;
After that add this function.:
VB.NET, C#, Java, HTML, JQuery, Javascript, PHP, Software Reviews, Computer Tips and Tech News
using Microsoft.Win32; using System.Collections;