In this exercise, you learn how to use the String Collection Editor window to fill a list

Question:

In this exercise, you learn how to use the String Collection Editor window to fill a list box with values. Open the VB2015\Chap06\ListBox Solution\ListBox Solution (ListBox Solution.sln) file. Open the Code Editor window. Remove the Add methods and the For...Next statement from the form’s Load event procedure, and then close the Code Editor window. Click the lstAnimal control on the form. Click the Items property in the Properties list, and then click the ellipsis (...) button in the Settings box. The String Collection Editor window opens. Type Dog and then press Enter. Type Cat and then press Enter. Finally, type Horse and then press Enter. Click the OK button to close the dialog box. Use the String Collection Editor window to enter the following codes in the lstCode control: 100, 101, 102, 103, 104, and 105. Save the solution and then start the application.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: