Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

An application contains the following Structure statement: Structure MyFriend Pu

ID: 3557210 • Letter: A

Question

An application contains the following Structure statement:

Structure MyFriend

Public strLast As String

Public strFirst As String

End Structure

1. Write a Dim statement that declares a MyFriend variable named school.

2.Write an assignment statement that assigns the value in the txtFirst control to the strFirst member.

3.Write an assignment statement that assigns the value in the txtLast control to the strLast member.

4.Write an assignment statement that assigns the value in the strLast member to the lblLast control.

5.Write an assignment statement that assigns the value in the strFirst member to the lblFirst control.

Explanation / Answer

put this code inside the form:

download the full solution from this link
https://drive.google.com/file/d/0By7vR2TgXzD3RzdYMzRFMDI0c0E/edit?usp=sharing

'-----------------------------------

Public Class Form1
Structure MyFriend
Public strLast As String
Public strFirst As String
End Structure


Dim school As MyFriend

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
school.strFirst = txtFirst.Text


End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
school.strLast = txtLast.Text
End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
lblFirst.Text = school.strFirst
End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
lblLast.Text = school.strLast
End Sub
End Class

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote