tamil=textbox1.text english=textbox2.text maths=textbox3.text attendancemark(2,4,6,8,10)=combobox avg=tamil+english+maths/3 textbox4.text=avg textbox5.text=avg+combobox
Protected Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged If TextBox1.Text = "" Then TextBox1.Text = 0 ElseIf TextBox2.Text = "" Then TextBox2.Text = 0 ElseIf TextBox3.Text = "" Then TextBox3.Text = 0 ElseIf DropDownList1.SelectedItem.Text = "" Then DropDownList1.SelectedItem.Text = 0 End If a = TextBox1.Text b = TextBox2.Text c = TextBox3.Text d = DropDownList1.SelectedItem.Text sum = a + b + c / 3 subtract = sum + d TextBox4.Text = sum TextBox5.Text = subtract End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)