Mark sheet using MDI having following details.
· Student no
· Student name
· C++
· AVWP
· DFS
· OS
TOTAL (not to enter calculate automatic)
PERCENTAGE (not to enter calculate automatic)
GRADE (not to enter calculate automatic)
…. And when you click on ‘result’ it will calculate all necessary particulars & get MARKSHEET at new form.
Public Class app8
Dim a As Double
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
app8_A.TextBox1.Text = Me.TextBox1.Text
app8_A.TextBox2.Text = Me.TextBox2.Text
app8_A.TextBox3.Text = Me.TextBox3.Text
app8_A.TextBox4.Text = Me.TextBox4.Text
app8_A.TextBox5.Text = Me.TextBox5.Text
app8_A.TextBox6.Text = Me.TextBox6.Text
app8_A.Label12.Text = Val(Me.TextBox3.Text) + Val(Me.TextBox4.Text) + Val(Me.TextBox5.Text) + Val(Me.TextBox6.Text)
app8_A.Label11.Text = Val(app8_A.Label12.Text) / 4
a = app8_A.Label11.Text
If a >= 70 Then
app8_A.Label10.Text = "A"
ElseIf a >= 60 Then
app8_A.Label10.Text = "B"
ElseIf a >= 50 Then
app8_A.Label10.Text = "C"
ElseIf a >= 40 Then
app8_A.Label10.Text = "D"
ElseIf a >= 35 Then
app8_A.Label10.Text = "E"
Else
app8_A.Label10.Text = "F"
End If
Me.Hide()
app8_A.Show()
End Sub
End Class
Made By: Yadav Roshani R. from Third Year of BCA
Comments
Post a Comment