Auto-fill combo box Remove duplicates from an array New RadioGroup control. How does it work? How to remove element from Collection? How to do an alphabetical search in a list box? .Net XP DataGrid Button column Style. .Net DataGrid Memo column Style. .Net DataGrid DateTimePicker column Style. How to Trap the Tab Key in a .NET Control? How to change the background color for DataGridComboBoxColumn in a datagrid? How to change the display format for DateTimePicker in a datagrid? How to setup the combo box that filters values from a related child table? How to format a datagrid column using a Date/Time format? How to update data in the column? How to format a datagrid column using a Numeric format? How to update data in the column? How to mask the data in a DataGrid Data column? How to mask the phone number (SSN, IP address) data?
How to search a list box by typing text into a combobox control? This example shows how to implement an auto-fill combo box. You often faced it on some sophisticated web pages. As characters are typed, the program finds the closest matching item from the combobox list and automatically fills in the remaining characters. A similar approach using event Change can be used to work with a text box and list box control.
How to remove the duplicates in a string array? Here is an example of deleting double elements in an array. This example removes all the duplicate elements from the array InitialArray and create from it the new FinalArray.
If you have a project, which has a lot of Option Buttons groups on Visual Basic Forms you know how OptionButton control works. RadioGroup ActiveX control is a useful VB component to replace VB OptionButton control. There is a sample below, which demonstrates how to use this new ActiveX control.
How to remove element from Collection if you know its Name and don't know its index? Use the Remove method of Collection, which will take the Collection Item by the index parameter and permanently remove it from your collection. In this example we first add some Items to the colVariables Collection. We then walk through this collection to locate the Item with Name "BMW". Once we do locate it we use the Remove method to delete it from the collection and exit the ForNext.