04.03.2015 Views

VBNET

Vb.Net üzere güzel örnekler bulunduran bir döküman

Vb.Net üzere güzel örnekler bulunduran bir döküman

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VB.Net Örnek Uygulamalar<br />

2 Kasım 2011<br />

Return 125<br />

ElseIf kod = 2 Then<br />

Return 55<br />

ElseIf kod = 3 Then<br />

Return 25<br />

Else<br />

Return 0<br />

End If<br />

End Function<br />

Function kidem(ByVal m As Integer, ByVal kod As Byte) As Double<br />

Return (kod * m / 100)<br />

End Function<br />

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As<br />

System.Object, ByVal e As System.EventArgs) Handles<br />

ComboBox1.SelectedIndexChanged<br />

If ComboBox1.Text = "Bekar" Then<br />

ComboBox2.Enabled = False<br />

RadioButton1.Enabled = False<br />

RadioButton2.Enabled = False<br />

RadioButton1.Checked = False<br />

RadioButton2.Checked = False<br />

ElseIf ComboBox1.Text = "Boşanmış/Dul" Then<br />

ComboBox2.Enabled = True<br />

RadioButton1.Enabled = False<br />

RadioButton2.Enabled = False<br />

RadioButton1.Checked = False<br />

RadioButton2.Checked = False<br />

Else<br />

ComboBox2.Enabled = True<br />

RadioButton1.Enabled = True<br />

RadioButton2.Enabled = True<br />

End If<br />

End Sub<br />

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As<br />

System.EventArgs) Handles Button1.Click<br />

Dim m_gosterge As Integer = TextBox1.Text<br />

Dim maas As Double<br />

Dim kod As Byte = 0<br />

Dim cocuk_sayisi As Byte<br />

If ComboBox2.Text = ">3" Then<br />

cocuk_sayisi = 4<br />

Else<br />

cocuk_sayisi = CInt(ComboBox2.Text)<br />

End If<br />

maas = m_gosterge + cocuk_yardimi(m_gosterge, cocuk_sayisi)<br />

If RadioButton1.Checked Then kod = 1<br />

If RadioButton2.Checked Then kod = 2<br />

maas = maas + aile_yardimi(kod)<br />

kod = 0<br />

If ComboBox3.Text = "90-100" Then kod = 1<br />

If ComboBox3.Text = "80-89" Then kod = 2<br />

If ComboBox3.Text = "70-79" Then kod = 3<br />

maas = maas + yabanci_dil(kod)<br />

Tolga GÜYER Sayfa 46

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!