такая ошибка, не знаю что делать, помогите п
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.Win32;
namespace Project3
{
public partial class Form1 : Form
{
public Form1()
{
RegistryKey currentUserKey = Registry.CurrentUser;
RegistryKey Info = currentUserKey.CreateSubKey("Info");
string Text = (string)Info.GetValue("Text");
textBox1.Text = Text;
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
RegistryKey currentUserKey = Registry.CurrentUser;
RegistryKey Info = currentUserKey.CreateSubKey("Info");
Info.SetValue("Text", textBox1.Text);
Info.Close();
}
}
}
ожалуйста