Arama butonu
Bu konudaki kullanıcılar: 1 misafir
3
Cevap
265
Tıklama
0
Öne Çıkarma
catch try ufak bir problem
A
12 yıl
Yarbay
Konu Sahibi

public DataSet getDataSet(String sql)
{
try
{
openConnection();
command = new SqlCommand(sql, con);
using (SqlDataAdapter adapter = new SqlDataAdapter(command))
{
using (DataSet ds = new DataSet())
{
adapter.Fill(ds);
return ds;
}
}
}
catch
{
throw;
}
finally
{
closeConnection();
}

yaptığım zimmet programında.personel ekle penceresinde çıkış yaptığımda derleme sonucu catch throw kısmına atıyor beni program.ben sadece formdan çıkış yapmasını istiyorum.ne yapmam lazım...