RegistryKey regKeyAppRoot = Registry.CurrentUser.CreateSubKey(strPath);
if (WindowState == FormWindowState.Maximized)
strWindowsState = "Maximized";
else if(WindowState == FormWindowState.Maximized)
strWindowsState = "Minimized";
else
strWindowsState = "Normal";
regKeyAppRoot.SetValue("WindowState", strWindowsState);