Anarchosa Posted December 31, 2021 Share Posted December 31, 2021 Formda bir hesaplama yapıyorum sonucu veriyor kaydediyorum sonra bir başka butonla sıfırlama yapıyorum yani radio buton veya textbox içine girilen değeleri siliyorum sildikten sonra tekrar hesaplama yapıyorum hesaplamıyor progressBar1 sürekli duruyor hata vermiyor ama tekrar hesaplama yapmıyor bunu nasıl çözebilirim ? ben formu kapatıp açınca hesaplama yapabiliyorum hesaplama sonuc1.Visible = true; progressBar1.Increment(10); baryuzdesi.Visible = true; if (i < 100) { i++; i++; i++; i++; i++; i++; i++; i++; i++; i++; progressBar1.Value = i; baryuzdesi.Text = "% " + i; if (progressBar1.Value == 100) { yapisalafetm(); yumusakkat(); katsayisii(); kisakolon(); duzeyduzen(); planduzen(); tepeyan1(); yapinizam1(); AgirCilma(); tabanpuan1(); sonuc1.Visible = true; guvendurumu.Visible = true; deger = yapisalafetm1 + yumusakkatt + binagorseliyii + tabanpuan + duzeyduzen1 + planduzen1 + kisakolon1 + tepeyan + yapiortaa + agircilma; sonuc1.Text = deger.ToString(); sonuc1.Visible = true; guvendurumu.Visible = true; if (deger <= 65) { sonuc1.Visible = true; guvendurumu.Text = "DEPREM BÖLGESİ"; basarisiz.Visible = true; basarili.Visible = false; cevapla.Stop(); } else { guvendurumu.Text = "GÜVENLİ BÖLGE"; sonuc1.Visible = true; basarili.Visible = true; basarisiz.Visible = false; cevapla.Stop(); } } Sıfırlama içeriği Alıntı kaydetToolStripMenuItem1.Enabled = true; cevapla.Stop(); sonuc = Convert.ToString(sonuc1); yapi_kullanım_türü.Text = ""; tepevar.Checked = false; tepeyok.Checked = false; yapisalsistem.Checked = false; yapisalcerveveli.Checked = false; binagorseliyi.Checked = false; binagorselorta.Checked = false; binagorselkotu.Checked = false; yumusakvar.Checked = false; yumusakyok.Checked = false; yapiorta.Checked= false; farkliorta.Checked = false; yapikenar.Checked = false; farklikenar.Checked = false; agircikmavar.Checked = false; agircikmayok.Checked = false; tepevar.Checked = false; duseydenvar.Checked = false; duseyduzenyok.Checked = false; bina_kimlik_no.Text = ""; bina_isim.Text = ""; bina_pafta.Text = ""; bina_yasi.Text = ""; map_x.Text = ""; map_y.Text = ""; zemin_sds.Text = ""; kac_kat.Text = ""; guvendurumu.Visible = false; basarili.Visible = false; basarisiz.Visible = false; planduzenvar.Checked = false; planduzenyok.Checked = false; kisacar.Checked = false; kisayok.Checked = false; sonuc1.Visible = false; baglanti.Close(); Quote Link to comment Share on other sites More sharing options...
Anarchosa Posted January 1, 2022 Author Share Posted January 1, 2022 güncel 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.