Hi there all,
First of all, I need to say that I'm so happy to join you... Second, I have a problem...
First I created a form page with a constructor that fills the listbox in it... As you can imagine all stuff begins after filling it... However, a friend of mine said that it will be good to add a Tabcontrol into that form... I add it and "copy-paste" all the form controls in it... But now I cant access them, plus listbox is empty... :( Please help...
TABCONTROL-FORM-ADO.NET stuff...
SqlDataAdapter cmd = new SqlDataAdapter("Select * From Ilgililer Where IlgiliOlMustId = @MusteriId", baglanti); // bağlı işlemler
cmd.SelectCommand.Parameters.AddWithValue("@MusteriId", p);
if (baglanti.State == System.Data.ConnectionState.Closed)
baglanti.Open();
DataTable dat = new DataTable();
cmd.Fill(dat);
listBox1.DisplayMember = dat.Columns["IlgiliAd"].ToString();
listBox1.ValueMember = dat.Columns["IlgiliId"].ToString();
listBox1.DataSource = dat;
if (baglanti.State == System.Data.ConnectionState.Open)
baglanti.Close();