I have two forms in my project. One is named formOptions and another is formHome. I have a listBox in formOption named Blacklist. I have a textBox by which I can add text to the "Blacklist" listBox. Now, I want to access the items from "Blacklist" listBox from formHome. I have tried the following approach :
private void formHome_Load(object sender, EventArgs e)
{
formOptions.Blacklist // as follows
}
But at this point it shows an error that "An object reference is required for the non-static field, method, or property 'formOptions.Blacklist'.
Now, What can I do to access the listBox?