The best way to do that is to pass a reference for the control to the class in question, like this:
public class MyClass
{
public void DoSomething(ref ListBox listbox)
{
... do something with the listbox contents
}
}
And in your form:
myClass.DoSomethingWith(ref listBox1);
Of course, if you don't want to modify the control at all, you don't need the
ref
key word.