Ahoj,mám takto zdrojový kód a nevím jak udělat aby Checkbox po zaškrtnutí připočetl k určitému číslu 60% : Public Class Form1 Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim b As Double = CDbl(ComboBox1.Text) Dim c As Double = b * 150 TextBox1.Text = CDbl(c) End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim b As Double = CDbl(ComboBox2.Text) Dim c As Double = b * 100 TextBox2.Text = CDbl(c) End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim b As Double = CDbl(ComboBox3.Text) Dim c As Double = b * 200 TextBox3.Text = CDbl(c) End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim a As Double = CDbl(TextBox1.Text) Dim b As Double = CDbl(TextBox2.Text) Dim c As Double = CDbl(TextBox3.Text) Dim d As Double = a + b + c TextBox4.Text = CDbl(d) End Sub Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged Dim a As Double = CDbl(TextBox1.Text) Dim b As Double = CDbl(TextBox1.Text) Dim c As Double = CDbl(TextBox1.Text)
If CheckBox1_Checked() Then End If End Sub Private Function CheckBox1_Checked() As Boolean Throw New NotImplementedException End Function End Class Prosím nekritizujte ty kraviny co tam dělám :) Začínám s tím a nevím ještě pořádně co a jak
|