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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide a listbox column?

Status
Not open for further replies.

miglou

Programmer
May 28, 2002
37
0
0
PT
is it possible???????
 
ohhhh....i forgot... I want hide a listbox column in run time....
 
Hi,
If you want to hide a column in a lsit box, set the particular colums width to 0. Eg. If you have 3 column list box and want to hide the 2nd column, try setting the Column Widths proprty of the list box as follows

1";0";2"

This will hide the second column of the list box.

To make the list box invisible, set its Visible property to False.

Me.List1.Visible = False Hope it helps. Let me know what happens.
With regards,
PGK
 
i tried setting the Column Widths property of the list box as follows 1";0";2", in run time (Me.List1.ColumnWidths="1.0;0;2.5"), but no expected results...
make listbox invisible is not what y want
thanks for your help.
good luck
 
Hi,
I don't know if you can manipulate teh Column Widths property at runtime. However, did you requery the list box after changing the widths? Try that or else set the property at design time. Hope it helps. Let me know what happens.
With regards,
PGK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top