Add a Horizontal Scroll Bar to A List Box
Category:
Forms and ControlsType:
SnippetsDifficulty:
IntermediateAuthor:
Intelligent Solutions Inc.Version Compatibility:
More information:
This routine adds a horizontal scroll bar only if necessary, based on the width of items in the list box. It will work even if the form's scale mode is non-standard (i.e., not set to vbTwips or vbPixels).
NOTE: I had trouble getting this to work under Windows NT. I don't know why. Works fine under 95/98 and has no adverse effects under NT.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: