E
Evgeny Zoldin
Hi ALL.
How to hide (not remove) specified row in ListBox control?
Thanks
Evgeny
How to hide (not remove) specified row in ListBox control?
Thanks
Evgeny
* "Evgeny Zoldin said:How to hide (not remove) specified row in ListBox control?
Stoitcho Goutsev (100) said:Hi Don,
Both methods even if implemented ok will leave a blank row on the list box.
I wouldn't call this hiding.
--
B\rgds
100 [C# MVP]
thatDon Peters said:Yes, I suppose you could do it by changing the text/foreground color of that
item to simply be the background color (white). The problem there isif
this item were to be selected, you would then see the white text on the
default blue selection background.
Another thought - You could paint on the text using a brush with a
transparency of 0 rather than the default of 255, e.g.,
Dim InvisibleBrush as Brush = New SolidBrush(Color.FromArgb(0,0,0,0))
Both of these schemes would require you to use the MeasureItem and DrawItem
events.
Don