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

Public Class Form1 Private Sub btnRecord_Click(sender As Object, e As EventArgs)

ID: 3912739 • Letter: P

Question

Public Class Form1

    Private Sub btnRecord_Click(sender As Object, e As EventArgs) Handles btnRecord.Click

        lstDisplay.Items.Clear()

        Dim intRow As Integer

        Dim intColumn As String

        intColumn = InputBox("Please enter number of columns")

        Dim strAdd(intRow, intColumn) As Integer

        Dim strRow(intRow), strColumn(intColumn) As String

        Dim strShow(intRow, intColumn) As Integer

        Dim strOutput1, strOutput2 As String

        lstDisplay.Items.Add(txtDate.Text)

        strOutput1 &= strColumn(0)

        For intCount1 As Integer = 1 To intColumn

            strColumn(intCount1) = InputBox("Please enter the name of item # " & intCount1)

            strOutput1 &= strColumn(intCount1) & vbTab

        Next

        lstDisplay.Items.Add(strOutput1)

        For intCount2 As Integer = 1 To intRow

            strRow(intCount2) = InputBox("Please enter " & intCount2 & " name")

        Next

        For intRow2 As Integer = 0 To intRow

            strOutput2 = String.Empty

            strOutput2 = strRow(intRow2) & vbTab

            For intColumn2 As Integer = 1 To intColumn

                strShow(intRow2, intColumn2) = InputBox("Please enter " & strRow(intRow2) & " 's " & strColumn(intColumn2))

               strOutput2 &= strShow(intRow2, intColumn2) & vbTab

            Next

            lstDisplay.Items.Add(strOutput2)

        Next

    End Sub

End Class

Would like to be shown how to plug in this code correctly above.

C, WindowsFormsApp4 WindowsFormsApp4.Form1 Form10 using System; using System.Collections.Generic; using System. ComponentModel; using System.Data; using System.Drawing; using System. Linq; using System.Text; using System.Threading.Tasks; using System.Win 4 dows. Forms 10 12 13 namespace WindowsFormsApp4 3 references public partial class Formi Form 1 reference :public Form1() 16 17 InitializeComponent(); 19 1 reference 20 ; private void Form1_Load (object sender, EventArgs e) 21 23 1 1 reference :private void Record_Click(object sender, EventArgs e) 26 27 29 1 reference : private void textBox2_TextChanged (object sender, EventArgs e) 30 31 32 ' 1 reference : private void textBox3_TextChanged (object sender, EventArgs e) 36 37 38 39 40 41

Explanation / Answer

Code will be like

Put this code inside the Record click method ()

{

// Put the below code here

}

lstDisplay.Items.Clear();

int intRow;

string intColumn;

intColumn = Interaction.InputBox("Please enter number of columns");

int[,] strAdd = new int[intRow + 1, intColumn + 1];

string[] strRow = new string[intRow + 1], strColumn = new string[intColumn + 1];

int[,] strShow = new int[intRow + 1, intColumn + 1];

string strOutput1, strOutput2;

lstDisplay.Items.Add(txtDate.Text);

strOutput1 += strColumn[0];

for (int intCount1 = 1; intCount1 <= intColumn; intCount1++)
{
strColumn[intCount1] = Interaction.InputBox("Please enter the name of item # " + intCount1);

strOutput1 += strColumn[intCount1] + Constants.vbTab;
}

lstDisplay.Items.Add(strOutput1);

for (int intCount2 = 1; intCount2 <= intRow; intCount2++)

strRow[intCount2] = Interaction.InputBox("Please enter " + intCount2 + " name");

for (int intRow2 = 0; intRow2 <= intRow; intRow2++)
{
strOutput2 = string.Empty;

strOutput2 = strRow[intRow2] + Constants.vbTab;

for (int intColumn2 = 1; intColumn2 <= intColumn; intColumn2++)
{
strShow[intRow2, intColumn2] = Interaction.InputBox("Please enter " + strRow[intRow2] + " 's " + strColumn[intColumn2]);

strOutput2 += strShow[intRow2, intColumn2] + Constants.vbTab;
}

lstDisplay.Items.Add(strOutput2);
}

If the above solution is helpful to you in any way please rate it Or if you have any concerns please comment it, I will help you through

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