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

Please help with following code for visual studio 2015 (visual basic code) I typ

ID: 3583410 • Letter: P

Question

Please help with following code for visual studio 2015 (visual basic code) I typed up my code but keep getting all kinds of errors for these functions. Please help!!

!ual Basic Program to capture name and address information for an online product Bill To, Ship To, and Credit Card information. Provide a Visual Basic Form with the following information: User Entered Data: User To Name, Address, Second Address, City, State Code, and Zip Code Entered or Copied Data: Ship-To Name, Address, Second Address, City, State Code, and Zip Code. A Button to copy Bill-To information to Ship-To information, if it is the same information User Entered Credit Card Information: Allow Radio Buttons for choice of Visa, Master or American Express and Display the Card, choice in a Label Control. Allow for the Entering of Credit Card Number, Expiration Date, and Card Code in Text Controls. A Button to simulate the writing of the data to a database (no actual code needed). A Button to Exit or Close the program T. u D Form as Designed

Explanation / Answer

Write this code on use enter data

// handles the event from frmId

private void IdForm_ButtonClicked(object sender,

                IdentityUpdateEventArgs e)

{

    // update the forms values from the event args

    txtFirstName.Text = e.FirstName;

    txtMiddleName.Text = e.MiddleName;

    txtLastName.Text = e.LastName;

}

WRITE this code on enter credit card information

private void btnSetName_Click(object sender, EventArgs e)

{

    frmID f = newfrmID();

          

    // Add an event handler to update this form

    // when the ID form is updated (when

    // IdentityUpdated fires).

    f.IdentityUpdated += new frmID.IdentityUpdateHandler(

                                IdForm_ButtonClicked);

f.Show();

}

Write This Code on simulate the data in database

private void btnSetAddress_Click(object sender, EventArgs e)

{

    frmAddress f = newfrmAddress();

    // Add an event handler to update this form

    // when the Address form is updated (when

    // AddressUpdated fires).

   

    f.AddressUpdated += new frmAddress

        .AddressUpdateHandler(AddressForm_ButtonClicked);

          

    f.Show();

}

// handles the event from frmAddress

private void AddressForm_ButtonClicked(object sender,

                            AddressUpdateEventArgs e)

{

    // update the forms values from the event args

    txtStreet.Text = e.Street;

    txtCity.Text = e.City;

    txtState.Text = e.State;

    txtZipCode.Text = e.ZipCode;

}

write this code on exit and close the programm

private void btnExit_Click(object sender, EventArgs e)

{

    Application.Exit();

}