1. Engineering
  2. Computer Science
  3. using visual basic getting an error private structure sudents public...

Question: using visual basic getting an error private structure sudents public...

Question details

Using Visual Basic, getting an error

Private Structure Sudents

Public name as String

Public gpa as Double

End Structure

Private Sub btnInfo_Click(sender As Object, e As EventArgs) Handles btnImfo.Click

Dim student as Students

If (txtName.Text <> Nothing) Then

If (txtGPA.Text <> Nothing) Then

MessageBox.Show("Your name is" + student.name.ToString() + ", and your gpa is" + student.gpa.ToString() + "Receiver", MessageBoxButton.OK

MessageBoxIcon.OK)

Else

End If

Else

MessageBox.Show("Invalid input", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)

End If

End Sub

End Class

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution