Question: In this exercise, you learn how to use the String Collection Editor window to fill a list box with values. Open the VB2015Chap06ListBox SolutionListBox Solution
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.
Step by Step Solution
3.31 Rating (163 Votes )
There are 3 Steps involved in it
Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 14 VisualStudioVersion 140225120 MinimumVisualStudioVersion 100402191 ProjectF184B08FC81C45F6A57F5ABD9991F28F ListBox Project Li... View full answer
Get step-by-step solutions from verified subject matter experts
