Okay so this has been bugging me for quite sometime. I thought if I skipped it and came back maybe I might figure it out but I guess not. The basic idea is to let the user generate their own content into a list box, text box, and the content still be there the next time the user opens the program. Like, say I want to make an archive. I give the user an option to create a name for whatever they are storing and store that to a list box, then store whatever they put into the rich text box gets stored for call by the name in the list box. Only one problem with it so far... I seem to be missing a reference and can't figure out where it is or how to include it...
void button2_Click(object sender, EventArgs e)
{
storage.Text = userStore.Properties.Settings.storage;
if (display.Text == "")
{
MessageBox.Show("Please put something into the text box for us to store with the name you gave.");
}
else
{
storage.Text = display.Text;
userStore.Properties.Settings.storage = display.Text;
userStore.Properties.Settings.Save();
}
}
An object reference is required for the non-static field, method, or property 'userStore.Properties.Settings.storage.get'
That's the error I get at compiling. There are two others just like it but for the other two lines that say the same thing. Please help. I've looked everywhere and can't figure it out.