Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Open the VB2015Chap09Debug SolutionDebug Solution (Debug Solution.sln) file. Open the Code Editor window and review the existing code. The first column in the strNames array

Open the VB2015\Chap09\Debug Solution\Debug Solution (Debug Solution.sln) file. Open the Code Editor window and review the existing code. The first column in the strNames array contains first names, and the second column contains last names. The btnDisplay_Click procedure should display the first and last names in the lstFirst and lstLast controls, respectively. Correct the code to remove the jagged lines. Save the solution and then start the application. Click the Display button. Notice that the application is not working correctly. Correct the errors in the applications code, and then test the application appropriately.

image text in transcribedimage text in transcribed

14 15 16 17 18 19"Carol", "O Brien", 20 "Jacob", "Harper", 21 " Sue", "Chen") Private Sub btnDisplay_Click(sender As Object, e As EventArgs) Handles btnDisplay.click displays the first and last names in list boxes Dim strName s(,) As String = {{"Marry", "Jones"), 23 24 25 26 27 28 29 30 31 32 lstFirst.Items.Clear() lstLast.Items.clear() For int Row As Integer = 1 To strNames . 1) lstFirst.Items.Add(strNames (intRow) ()) lstlast. Items.Add(strNames (intRow) (1)) nd Sext intRotens . Add(strNameesantRot)(e)pper Bound(1) End Sub End Class 34

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions