Jump to content

Visual Basic De Soru Bankası


efk_715
 Share

Recommended Posts

Öncelikle herkese merhaba!Benim sorunum vşsual basic deki bir soru bankası programı ile ilgili.Forumda visual basic programlama bilen abilerimizin olduğunu biliyorum ve onlardan yardım istiyorum.Daha önce bir zil programı ile ilgili sorunumu burada belirtmiştim.Sağolsun bilgtron isimli abimiz yardım etti ve sorunuma çözdü.ona buradan çok teşekkür ediyorum.

Benim anlatmak istediğim testin cevaplarını kontrol ederken sayıya göre değil checkboxların yanlışlık durumuna göre değerlendirip yanlış sayısını otomatik olarak label2 ye yazmasını istiyorum.Çok uğraştım yapamadım.yardım edermisiniz.

[img]http://i1103.hizliresim.com/2011/3/11/11589.jpg[/img]
[img]http://i1103.hizliresim.com/2011/3/11/11695.jpg[/img] Edited by efk_715
Link to comment
Share on other sites

Şimdi anladığıma göre doğru sayısını label1 göstericek ve yanlış sayısınıda label2,
bu durumda şöyle bir kod deneyebilirsin.
Mantık şöyle:Doğru olan şıkkı belirleyeceksin örneğin ben checkbox2 yi doğru kabul ettim.Diğer şıklar işaretliyse yanlış sayısı bir artacak,sadece doğru şık işaretli ise doğru sayısı bir artacak çok aceleyle yazdım.Daha düzenli kodlar yazılabilir.
[code]Dim dogru As Integer
dogru = 0
Dim yanlis As Integer
yanlis = 0
If CheckBox2.Checked = True And CheckBox1.Checked = False And CheckBox3.Checked = False And CheckBox4.Checked = False Then
dogru = dogru + 1
Label1.Text = "Doğru :" + dogru.ToString()
Else
yanlis = yanlis + 1
Label2.Text = "Yanlış :" + yanlis.ToString

End If[/code]
Edit : Bu arada konu yanlış yerde Autoit Bölümüne açmışsın.

Edited by Scarecrow
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...