forum

home / developersection / forums / more different items in one list

More different items in one list

marcel ethan 1936 17-Dec-2013

I want to make a list with different items or what I should call it. I mean for example.

public class form1                                                                                                                                            
{
    public List<string> information = new List<string>();
}
And I want It to contain information from textboxes with Id, name and phonenumber like this:
private void btnForm_Click(object sender, EventArgs e)
{
    Form2 Form1= new Form2();
    Form1.Show();
    class Form2a = new Form2();
    a.information.Add(txtId.Text);
    a.information.Add(txtName.Text);
    a.information.Add(txtPhonenumber.Text);
}

Then it will be filled with what we can call different customers who have different Id, names and phonenumbers.

Then I want to get the information to another form.

Can someone please help me or give me tips on how?


c# c# 
Updated on 17-Dec-2013
marcel ethan

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By