Discuss the below:
Task:
You have a command button, cmdStart, a list box, 1stOutput, and a test box, txtCount. Assume the user has entered a numerical value in txtCount. Write code for the command button's click event to display the integers from 1 to that number in the list box. So if the user enters 5, the program displays the numbers 1 through 5. Provide the code in visual basic.