Requesting to help Soon i have created windows appltn that contains two forms in form one lable and two textbox likelabel,textbox1(item_code), 2nd textbox2(item_discription). when i double click on particular item that item code , item discription goes to form1 textboxs how to transfer code.
form2 code:
private void listBox_user_SelectedIndexChanged(object sender, EventArgs e)
{
if (listBox_user.SelectedItem != null && rdr != null)
{
try
{
if (rdr.Read())
{
textBox1_code.Text = rdr.GetString(1);
textBox2_dis.Text = rdr.GetString(2);
}
}
}
}