Back to Browse

VB.NET S1E5 : ComboBox CRUD - ADD UPDATE DELETE

1.1K views
May 7, 2018
9:58

This is our VB.NET ComboBox CRUD tutorial as part of our VB.NET Components series. SOURCE CODE REFERENCE : http://camposha.info/vb-net/combobox-crud In this tutorial we want to see how to add update delete and clear items to and from a combobox. This is a windows froms tutorial to help us understand the combobox. What is a ComboBox? ComboBox is a Windows Forms control used to display data in a drop-down combo box. Normally it appears in two parts: A top part which is a text box that allows the user to type a list item. The second part is a list box that displays a list of items from which the user can select one. Selecting an Item in a ComboBox Normally we want to get an item that is selected from a ComboBox. We can use the SelectedIndex property which does return an integer value that corresponds to the selected list item. If no item is selected, the SelectedIndex value is -1. Performing CRUD in ComboBox To add or delete items in a ComboBox control, use the Add, Insert, Clear or Remove method. This is what we do in this class, performing CRUD on a ComboBox. VB.NET ComboBox CRUD Example. So in this class we want to see how to perform CRUD activities in our VB.NET windows forms combobx control. The user types data in a TextBox, he clicks add and the item gets added. He selects an item from the combobox, we set that selected item into the TextBox, he can the edit it and click update to update the combobox. He can select and item and click delete to delete that particular item.' If he clicks clear we clear all items from the combobox. Let's go.

Download

0 formats

No download links available.

VB.NET S1E5 : ComboBox CRUD - ADD UPDATE DELETE | NatokHD