In my program i took a listbox, in this listbox I added number of items.
Now I want to know how to get number of listbox items & show number of items in a textbox. when number of items is not fixed.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Let’s say your listbox is called ListBox1 and textbox is TextBox1. Then the code you need is
Of course knowing your platform (WinForms, WebForms, Html etc.) would help a lot for a more accurate answer.