Showing posts with label ListBox. Show all posts
Showing posts with label ListBox. Show all posts

How to add value to a list item in ListBox,ComboBox controls in VB.NET without ValueMember Property



As a beginner programmer you might have faced a lot of problems with the List Box and Combo Box controls in Visual Basic.NET while you access data from database with code.   If you want to use the property namely “ValueMember” then you must have to data bind the List Box with a data source. You can do that easily because there are a lot of tutorials regarding that. I’m not really going to explain how to connect to data base or how to data bind controls or similar stuffs. I’m just showing you how to set multiple values for a single Item in a List Box controls. I’ll show you it with an example. Before we start, you should have a clear understanding of classes. VB.NET is all about Classes and Objects.