Re: List Boxes and Buttons
Yes. I can. But as it involves two of the most simple and fundamental principles of VB, responding to an event and changing the values of a property, I'm almost certainly not going to. Being new to VB is not an excuse to bypass learning. To do so would be to ensure that you are never anything more than 'new to this'.
Re: List Boxes and Buttons
Re: List Boxes and Buttons
dunfiddlin is correct that what you're asking for is very fundamental and will be covered quite early in any beginners tutorial. If you're in a class or working through a book then it's unlikely that you'd have been asked to create an app that does that without having covered setting properties and handling events already. I suggest that you work your way through the tutorial below and then you'll have enough information to answer your own question and more besides.
http://www.homeandlearn.co.uk/NET/vbNet.html
If you're not 100% sure which event to handle and which property to set then there are easy ways to find out. For a start, you can use the Help menu to open the MSDN documentation. You can then read what events a ListBox has and what each one is for to determine which event to handle. You can also read what properties a Button or Label has and what each one is for to determine which one to set. Being a beginner means you don;t know things but it doesn't mean that you can't find things out. Sometimes we don't know where to look though. Now you do.