Mine
public text v1 · immutablepublic class Rec
{
private string info;
private Control ctrl;
public Rec(string infoParam, Control senderCtrl)
{
info = infoParam;
ctrl = senderCtrl;
}
}
public class Form1 : System.Windows.Forms.Form
{
private ArrayList myList;
public Form1
{
...
myList = new ArrayList();
}
private void NameTextBox_Click(object sender, System.EventArgs e)
{
Rec recObj = new Rec(NameTextBox.Text, NameTextBox);
myList.Add(recObj);
}
}