Set ListIndex Property Without Generating Click Event
Category:Forms and Controls
Author:Intelligent Solutions Inc.
With a list box or a combo box, if you set the listindex property, you will also generate a click event for the control. This code allows you to set the listindex property (i.e., highlight a particular list item) without generating a click event.
Instructions: Copy the declarations and code below and paste directly into your VB project.