D
DrPete
To tidy up my code, within a form I am calling a method in a different
class, e.g.
switch (listBox1.SelectedItems.ToString())
{
case "Stock":
Stock.doMigrate();
break;
default:
break;
}
Within the Stock.doMigrate code how do I reference any of the
components on the form? I can't seem to figure it out nor find
examples on the web.. Your help would greatly be appreciated!
Peter
class, e.g.
switch (listBox1.SelectedItems.ToString())
{
case "Stock":
Stock.doMigrate();
break;
default:
break;
}
Within the Stock.doMigrate code how do I reference any of the
components on the form? I can't seem to figure it out nor find
examples on the web.. Your help would greatly be appreciated!
Peter