I am new to c# and I am writing a simple application that want to pass Form 1 listview value to the Form 2 textbox. So how can I pass these subitem to the Form 2 textboxes?
private void Form1_Load(object sender, EventArgs e)
{
ListViewItem item = new ListViewItem("ITEM1");
item.SubItems.Add("ITEM2");
item.SubItems.Add("ITEM3");
listView1.Items.AddRange(new ListViewItem[] { item });
}
private void button1_Click(object sender, EventArgs e)
{
Form2 newForm = new Form2();
newForm.Show();
}