class Constructor help - passing arguements

Need a little help here, syntax wise for trying to pass arguments.  
Here is the code and the problem is the number of arguements, ususally easy to do, but can't find the correct syntax this time to use same code for a window form....

namespace Homes
{

public class Form1 : System.Windows.Forms.Form
{
ArrayList myAL = new ArrayList();
public Form1()
{
InitializeComponent();
}

if (this.lstbxLocation.Text.ToString() == "Rio")
{
home temp = new Rio(a, b, c, d, e);
myAL.Add(temp);
}
} // end Form1 class

public class home{
string w;
string x;
string y;
string z;
string i;

}

public class Rio : home
{
Rio(string a, string b, string c, string d, string e)
{
} // end constructor
} // end class Rio


} // end namespace

The problem is, usually the arguments in the Rio constructor are ok, but this is a windows form and just can't seem to find the right way to do this.

Any suggestions

Thanks all,

Zath


Answer this question

class Constructor help - passing arguements

  • mwiler

    Nevermind, I figured it out.  The constructor Rio should have public in front of it....

    Zath

  • class Constructor help - passing arguements