sadoece00 Posted June 15, 2012 Share Posted June 15, 2012 (edited) İyi günler ben C# da bir yazılım yapıyordum ama bugüne kadar hiç karşılaşmadığım bir hata bloğuyla karşılaştım yardımlarınızı bekliyorum.. Hatanın oluştuğu kodlar [spoiler][codebox]public static void KomboDetay(ComboBox Kombom, TextBox Firmaadi, TextBox Firmayetkili, TextBox Musteri, TextBox domaniks, DateTimePicker Baslangic, DateTimePicker Teslim, TextBox Toplam, TextBox Alinan, TextBox Kalan) { if (Kombom.SelectedIndex == -1) { Kombom.ResetText(); Firmaadi.ResetText(); Firmayetkili.ResetText(); Musteri.ResetText(); domaniks.ResetText(); Toplam.ResetText(); Alinan.ResetText(); Kalan.ResetText(); } else { OleDbConnection cn = new OleDbConnection(Classlar.Baglanti.CON); OleDbCommand com = new OleDbCommand("Select firmaadi, firmayetkili, musteri, domaniks, baslangic, teslim ,toplamucret, alinanucret, kalanucret From efor Where id=@id", cn); com.Parameters.AddWithValue("@id", Kombom.SelectedValue); if (com.Connection.State == ConnectionState.Closed) { com.Connection.Open(); } OleDbDataReader dr = com.ExecuteReader(); if (dr.HasRows) { while (dr.Read()) { Firmaadi.Text = dr["firmaadi"].ToString(); Firmayetkili.Text = dr["firmayetkili"].ToString(); Musteri.Text = dr["musteri"].ToString(); domaniks.Text = dr["domaniks"].ToString(); Baslangic.Text = dr["baslangic"].ToString(); Teslim.Text = dr["teslim"].ToString(); Toplam.Text = dr["toplamucret"].ToString(); Alinan.Text = dr["alinanucret"].ToString(); Kalan.Text = dr["kalanucret"].ToString(); } } dr.Close(); cn.Close(); }[/codebox] [/spoiler] Çıkan Hata : [spoiler] [img]http://www.tnctr.com/uploads/imgs/pre_1339752660__hata.jpg[/img][/spoiler] Edited June 15, 2012 by sadoece00 Quote Link to comment Share on other sites More sharing options...
MostWanted Posted June 15, 2012 Share Posted June 15, 2012 [warning][color=#FF0000][b]DİKKAT: Konu Başlığını forum Kurallarına gore yeniden düzenleyiniz. Aksi halde cope tasınacaktır. [topic=872]Forum Kuralları[/topic] - [ Madde 10-16 ]Konu düzenlenene kadar yazılan tüm iletiler silinecek, ileti yazanlar uyarı alacaktır.[/b][/color][/warning] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.