Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Column Widths Property

Status
Not open for further replies.

bpitche

MIS
Mar 13, 2001
43
US
How do you change the .ColumnWidths property for a list box using VB. I am using one list box, but the RowSource is changing as a different option button is selected. I know it should be:

Forms!frmEquipment!lstLISTBOX.ColumnWidths = ?

I am just not sure how to put the widths in so it will accept it. If anyone can help me, I would appreciate it.

Thank you, Brad Pitcher
The Hoover Company
bpitcher@hoover.com
 
Hi Brad!

You have to put the column widths in as a string:

"100;0;120"

will set the widths of three columns. The default measurment is in twips so if you want to use another you will need to include cm for centimeters or in for inches:

"1 in;0;6 in"

hth
Jeff Bridgham
 
Thank you Jebry!! Brad Pitcher
The Hoover Company
bpitcher@hoover.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top