Purchase Solution

Remove an item from combo box based on first letter in Visual Basic

Not what you're looking for?

Ask Custom Question

"In the following exercises, assume that the Simple combo box appears as shown and that the Sorted property is set to True. Give a statement or statements that will carry out the stated task."

The combo box contains:
Dante
Goethe
Moliere
Shakespeare

1. Delete the name Goethe.
2. Insert the name Cervantes.
3. Delete every item beginning with the letter M. The code should do the job even if additional items were added to the list.

Here is what I did for 1 and 2:
1) cboBox.Items.Remove("Goethe")
2) cboBox.Items.Add("Cervantes")

How do I delete an item based on its first letter?

Purchase this Solution

Solution Summary

This solution provides guidelines on how to carry out different tasks in computer programming (deleting items and entries).

Purchase this Solution


Free BrainMass Quizzes
Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Basic Networking Questions

This quiz consists of some basic networking questions.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.