c#da dividbyzeroexception kullanıma örnek
try
{
// toplama işlemi kodları
}
catch (DivideByZeroException hatamesajı)
{
MessageBox.Show(hatamesajı.Message);
}
catch (Exception hatamesajı)
{
MessageBox.Show(hatamesajı.Message);
}
finally
{
label1.Text = “işlem sonlandı”;
textBox1.Text = null;
textBox2.Text = null;
textBox1.Focus();
}
