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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.