Auto Size a Combo Box's Drop Down Width
Category:
Forms and ControlsType:
SnippetsDifficulty:
IntermediateAuthor:
Intelligent Solutions Inc.Version Compatibility:
More information:
This code automatically sizes the drop-down width of a combo box based on the width of the longest item in the combo box. Refer to the comments within the code for example and usage considerations.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: