Link to home
Start Free TrialLog in
Avatar of shacho
shacho

asked on

Column Divider Lines on a ListBox

Is there anyway to remove the thin gray divider lines between the columns on a listbox?

Mike
SOLUTION
Avatar of rockiroads
rockiroads
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You could set the values into an excel table and import it trhough 'insert -> object'.
Avatar of shacho
shacho

ASKER

Padding doesn't work because I expect some users to do a lot of select and copy operations.  Excel objects make forms unstable and can't easily be programmed to respond dynamically to changes in the underlying data source.  It's just a cosmetic afterthought anyway.  I guess I could just color the listbox the same color as the dividers, if it really bugs me.  Does anybody mind if I ask for a delete?

Mike
when u copy/paste, surely it will copy the bounded column value only. Changing the colour will still show the dividers though.
Only other thing possibly is multiple listboxes, side by side. no border colour. You will have to ensure on the click event, you set the other selected item in the listboxes. Can make all others disabled they cant select making life a little easier.
I know its not elegant but was just thinking of alternatives

Or maybe a frame which contains your listbox, all columns bar one descriptive text are hidden. You also have a series of textboxes, one to hold each furthr info you want. As you click, you simply set the textboxes to a value in the listbox columns
Avatar of shacho

ASKER

It's all too much of a stretch.  "It can't be done" is the answer, and if you respond with "it can't be done", I'll accept it as the solution.  Incidentally, I was able to make the dividers appear to disappear by coloring the listbox the same color.  You have to get the RGB formula precisely correct, which incidentally is 12632256 or RED=192, GREEN=192, BLUE=192.  I sampled the screen pixels to get the recipe.

Mike
Well you got the answer pretty much yourself, there isnt any properties that I have ever come across, only workarounds. Obviously various workarounds and people having different tastes will go for different works arounds. You have found one but messing around with colours, will it not make it look inconsistent with the rest of your form? I tried your colour, used 12632256 on backcolor. It appears much darker and does seem to make it disappear. My initial thoughts was that this control was disabled, just a different shade for greying out. Thats just my view though.
If you and your users are happy with this then maybe stick with this approach.
Job well done then I say.
Avatar of shacho

ASKER

Yeah, definitely too dark.  But it was worth investigating for the learning factor.  Do you object to a request for deletion?  I don't quite feel comfortable PAQing as it may mislead future searchers.

Cheers,

Mike
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shacho

ASKER

Actually - just wanted to make it clear somehow that they are workarounds, but your last comment manages that nicely.

Cheers,

Mike