33. Create an application in Visual Basic that will accept marks of
3 subjects and display the total marks and average marks. .
Answers
Answered by
1
Step-by-step explanation:
Write a VB program to accept the details of student and display mark sheet details on grid control.( rollno, student name, class, sub1, sub2, sub3, total, percentage, grade)
Private Sub Command1_Click()
Static i As Integer
For j = 1 To MSFlexGrid1.Cols – 4
MSFlexGrid1.Row = i + 1
MSFlexGrid1.Col = j
MSFlexGrid1.Text = Text1.Item(j)
Text1.Item(j) = “”
Next
i = i + 1
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
Dim i As Integer
Dim sum As Integer
Static j As Integer
sum = 0
MSFlexGrid1.Row = j + 1
For i = 4 To MSFlexGrid1.Col
Similar questions
Math,
6 days ago
Math,
12 days ago
Math,
12 days ago
Social Sciences,
7 months ago
Math,
7 months ago