Author Topic: Drop down box width  (Read 2089 times)

0 Members and 1 Guest are viewing this topic.

Matersammichman

  • Guest
Drop down box width
« on: January 19, 2007, 12:43:01 PM »
(I know there are programs out there to do this).
Does anyone have code that will adjust the width of a drop down box to accomodate the widest text entry? My layers can get a little truncated.

Guest

  • Guest
Re: Drop down box width
« Reply #1 on: January 19, 2007, 12:58:28 PM »
This is for VB: http://www.freevbcode.com/ShowCode.Asp?ID=1800

Quote
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.