RBNUBE schrieb: > The following code will hide column 2 of a 5 column ListBox and keep it from > being resized. You also have to restrict the column to the left of the > column you are trying to hide.
Sounds like a problem for me... I have a Listbox using following setup > liPrefList.Column(0).WidthExpression = "45%" > if flag then > liPrefList.Column(1).WidthActual = 40 > else > liPrefList.Column(1).WidthActual = 0 > end > liPrefList.Column(2).WidthActual = 30 > liPrefList.Column(3).WidthActual = 55 > liPrefList.Column(4).WidthActual = 0 > liPrefList.Column(5).WidthExpression = "*" > liPrefList.Column(6).WidthActual = 0 and now I use > liPrefList.Column(0).UserResizable = true > liPrefList.Column(1).UserResizable = false > liPrefList.Column(2).UserResizable = false > liPrefList.Column(3).UserResizable = false > liPrefList.Column(4).UserResizable = false > liPrefList.Column(5).UserResizable = true > liPrefList.Column(6).UserResizable = false So the "45%" and the "*" sized colums should be resized. The rest is fixed or hidden. When I now resize Column(0) I have the effect that Column(1) (which is either hidden or fixed) is resized. Also I can only make Column(0) smaller. I think my goal is not possible with the ListBox :( I miss a similar event like the "Resize" Event for a Window. Thanks for your suggestions. Tom _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
